run-script ( file -- )


Vocabulary
command-line

Inputs and outputs
filea pathname string


Word description
Parses the Factor source code stored in a file and runs it. The initial vocabulary search path is used. If the source file contains a MAIN: declaration, the main entry point of the file will be also be executed. Loading messages will be suppressed.

Errors
Throws an error if loading the file fails, there input is malformed, or if a runtime error occurs while calling the parsed quotation or executing the main entry point.

Definition