Application cookbook
Factor handbook » Factor cookbook

Prev:Vocabularies cookbook
Next:Scripting cookbook


Vocabularies can define a main entry point:
IN: game-of-life ... : play-life ( -- ) ... ; MAIN: play-life

See MAIN: for details. The run word loads a vocabulary if necessary, and calls its main entry point; try the following, it's fun:
"tetris" run

Factor can deploy stand-alone executables; they do not have any external dependencies and consist entirely of compiled native machine code:
"tetris" deploy-tool


References
Vocabulary loader
Application deployment
UI application deployment tool
Scripting cookbook