Start from a main routine: Difference between revisions

Add Factor
(→‎{{header|PicoLisp}}: Add Processing section)
(Add Factor)
Line 91:
=={{header|Erlang}}==
When started Erlang enters a REPL (read-eval-print loop). To call a function called main in the module m you do: erl -run m main argument1 argument 2 ...
 
=={{header|Factor}}==
Use <code>MAIN:</code> to specify the starting point of a runnable vocabulary.
<lang factor>USE: io
IN: example
 
: hello ( -- ) "Hello, world!" print ;
 
MAIN: hello</lang>
 
This is optional for scripts and interactive development, but required to deploy a Factor program as an executable binary.
 
=={{header|Forth}}==
1,827

edits