| Calling Sequence | parse(s)
| |||||||||
| Parameters |
| |||||||||
| Return Type | anything (an unevaluated Darwin expression/statement) | |||||||||
| Synopsis | Parse does the same syntactic analysis that Darwin would do on a program or interactive command. It returns the object thus created without evaluation. If the string s has a syntax error, then the command will print an appropriate error and return an error condition. If more than one statement is provided in the string, then these are concatenated and a statement sequence is returned. A terminating semicolon is not necessary, the parser will add one. Any NULL statement will be ignored. | |||||||||
| Examples | > parse('a+b');
a+b > eval(parse('xyz := 1'));
1 > xyz; 1 | |||||||||
| See also | eval, noeval | |||||||||