NuOperator
An abstract class for Nu operators.
Superclass: NSObject
Declared in: objc/Nu.h
Like everything else in Nu, operators are represented with objects.
Nu operators that are written in Objective-C are implemented with subclasses of this class.
Each operator is intended to have a singleton instance that is bound to a symbol
in a Nu symbol table. An operator is evaluated with a call to
its evalWithArguments:context: method.
When they implement functions, operators evaluate their arguments,
but many special forms exist that evaluate their arguments zero or multiple times.
Methods
| - |
(id) |
callWithArguments: |
(id) cdr |
|
context: |
(NSMutableDictionary *) context |
Call an operator with a list of arguments and an execution context.
This method should be overridden by implementations of new operators.
in objc/Nu.h
| - |
(id) |
evalWithArguments: |
(id) cdr |
|
context: |
(NSMutableDictionary *) context |
Evaluate an operator with a list of arguments and an execution context.
This method calls callWithArguments:context: and should not be overridden.
in objc/Nu.h