Anonymous user
Modulinos: Difference between revisions
Use 'lifemain'
(Added PicoLisp) |
(Use 'lifemain') |
||
Line 673:
=={{header|PicoLisp}}==
PicoLisp normally does it the other way round: It calls main from the command line with the '-' syntax if desired. Create an executable file (chmod +x) "life.l":
<lang PicoLisp>#!/usr/bin/picolisp /usr/lib/picolisp/lib.l
Line 679:
42 )
(
(prinl "Main: The meaning of life is " (meaningOfLife))
(bye) )</lang>
<lang PicoLisp>#!/usr/bin/picolisp /usr/lib/picolisp/lib.l
Line 690:
(bye)</lang>
Test:
<pre>$ ./life.l -
Main: The meaning of life is 42
|