]> gitweb.factorcode.org Git - factor.git/blob - basis/eval/eval-docs.factor
Create basis vocab root
[factor.git] / basis / eval / eval-docs.factor
1 IN: eval
2 USING: help.markup help.syntax strings io ;
3
4 HELP: eval
5 { $values { "str" string } }
6 { $description "Parses Factor source code from a string, and calls the resulting quotation." }
7 { $errors "Throws an error if the input is malformed, or if the evaluation itself throws an error." } ;
8
9 HELP: eval>string
10 { $values { "str" string } { "output" string } }
11 { $description "Evaluates the Factor code in " { $snippet "str" } " with " { $link output-stream } " rebound to a string output stream, then outputs the resulting string." } ;
12
13 ARTICLE: "eval" "Evaluating strings at runtime"
14 "Evaluating strings at runtime:"
15 { $subsection eval }
16 { $subsection eval>string } ;
17
18 ABOUT: "eval"