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

Next:run-file ( path -- )


The eval vocabulary implements support for evaluating strings of code dynamically.

The main entry point is a parsing word, which wraps a library word:
eval(

eval ( str effect -- )


This pairing is analogous to that of call( with call-effect.

Advanced features:
Evaluating strings with a different vocabulary search path
eval>string ( str -- output )