NuParser
A Nu language parser.
Superclass: NSObject
Declared in: objc/Nu.h
Instances of this class are used to parse and evaluate Nu source text.
Methods
Run the main handler for a console(Terminal.app)-oriented Nu shell.
in objc/Nu.h
Run a parser interactively at the console (Terminal.app).
in objc/Nu.h
Reset the parse set after an error
in objc/Nu.h
Returns true if the parser is currently parsing an incomplete Nu expression.
Presumably the rest of the expression will be passed in with a future
invocation of the parse: method.
in objc/Nu.h
| - |
(void) |
setValue: |
(id) value |
|
forKey: |
(NSString *) string |
Set the value of a name in the parser's context.
in objc/Nu.h
| - |
(id) |
valueForKey: |
(NSString *) string |
Get the value of a name or expression in the parser's context.
in objc/Nu.h
| - |
(NSString *) |
parseEval: |
(NSString *) string |
Parse Nu source text and evaluate it in the parser's evalation context.
in objc/Nu.h
Evaluate a parsed Nu expression in the parser's evaluation context.
in objc/Nu.h
| - |
(id) |
parse: |
(NSString *) string |
Parse Nu source into an expression, returning the NuCell at the top of the resulting expression.
Since parsing may produce multiple expressions, the top-level NuCell is a Nu
progn operator.
in objc/Nu.h
| - |
(id) |
parse: |
(NSString *) string |
Call -parse: while specifying the name of the source file for the string to be parsed.
in objc/Nu.h
| - |
(NSMutableDictionary *) |
context |
Get the top-level evaluation context that a parser uses for evaluation.
in objc/Nu.h
| - |
(NuSymbolTable *) |
symbolTable |
Get the symbol table used by a parser.
in objc/Nu.h