eval(
Factor handbook » The implementation » The parser » Evaluating strings at run time

Next:eval ( str effect -- )


Vocabulary
eval

Syntax
eval( inputs -- outputs )


Word description
Parses Factor source code from the string at the top of the stack, and calls the resulting quotation, which must have the given stack effect.

Notes
This parsing word is just a slightly nicer syntax for eval. The following are equivalent:
eval( inputs -- outputs ) ( inputs -- outputs ) eval


Errors
Throws an error if the input is malformed, or if the evaluation itself throws an error.

Definition