factor/basis/eval/eval-docs.factor

19 lines
750 B
Factor
Raw Normal View History

2008-07-28 23:03:13 -04:00
IN: eval
USING: help.markup help.syntax strings io ;
HELP: eval
{ $values { "str" string } }
{ $description "Parses Factor source code from a string, and calls the resulting quotation." }
{ $errors "Throws an error if the input is malformed, or if the evaluation itself throws an error." } ;
HELP: eval>string
{ $values { "str" string } { "output" string } }
{ $description "Evaluates the Factor code in " { $snippet "str" } " with " { $link output-stream } " rebound to a string output stream, then outputs the resulting string." } ;
ARTICLE: "eval" "Evaluating strings at runtime"
2009-01-27 05:11:43 -05:00
"The " { $vocab-link "eval" } " vocabulary implements support for evaluating strings at runtime."
2008-07-28 23:03:13 -04:00
{ $subsection eval }
{ $subsection eval>string } ;
ABOUT: "eval"