run-file ( path -- ) (original) (raw)

Vocabulary
parser

Inputs

path a pathname string

Outputs
None

Word description
Parses the Factor source code stored in a file and runs it. The initial vocabulary search path is used.

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

Definition

USING: combinators ;

IN: parser

: run-file ( path -- ) parse-file ( -- ) call-effect ;