Search code examples
factor-lang

MAIN not executed by Factor on command line


I'm not seeing any output from my Hello World program.

$ cat hello.factor 
USE: io
IN: hello

: hello ( -- ) "Hello World!" print ;

MAIN: hello

$ factor hello.factor
$

(No output)

$ factor -run=hello
Vocabulary does not exist
name "hello"

$ factor -run=hello hello.factor 
$

(No output)


Solution

  • Factor now executes a MAIN function for command line scripts that specify one. (See GitHub)