0
@@ -23,12 +23,13 @@ limitations under the License.
0
#import <Foundation/Foundation.h>
0
#import "nuinternals.h"
0
- @abstract The Nu symbol table class.
0
- @discussion Instances of NuSymbolTable manage collections of NuSymbol objects.
0
- By default, one NuSymbolTable object is shared by all NuParser objects and execution contexts in a process.
0
+ @abstract The Nu symbol table class.
0
+ @discussion Instances of NuSymbolTable manage collections of NuSymbol objects.
0
+ By default, one NuSymbolTable object is shared by all NuParser objects and execution contexts in a process.
0
@interface NuSymbolTable : NSObject
0
@@ -47,27 +48,29 @@ limitations under the License.
0
- (id) lookup:(const char *) string;
0
/*! Get an array containing all of the symbols in a symbol table. */
0
+/*! Remove a symbol from the symbol table */
0
+- (void) removeSymbol:(NuSymbol *) symbol;
0
- @abstract The Nu symbol class.
0
- @discussion Instances of NuSymbol are used to uniquely represent strings in parsed Nu expressions.
0
- NuSymbol objects are used as keys in local evaluation contexts (typically of type NSMutableDictionary)
0
- and each NuSymbol may also have a global value bound to it.
0
- Symbols ending in a colon (':') are considered "labels" which evaluate to themselves without error,
0
- and when a label is found at the head of the list,
0
- the list is considered to be a special type of list called a property list.
0
- Each member of a property list is evaluated and the resulting list is returned with no further evaluation.
0
+ @abstract The Nu symbol class.
0
+ @discussion Instances of NuSymbol are used to uniquely represent strings in parsed Nu expressions.
0
+ NuSymbol objects are used as keys in local evaluation contexts (typically of type NSMutableDictionary)
0
+ and each NuSymbol may also have a global value bound to it.
0
+ Symbols ending in a colon (':') are considered "labels" which evaluate to themselves without error,
0
+ and when a label is found at the head of the list,
0
+ the list is considered to be a special type of list called a property list.
0
+ Each member of a property list is evaluated and the resulting list is returned with no further evaluation.
0
@interface NuSymbol : NSObject <NSCoding>
0
- @public
// only for use by the symbol table
0
+ @public
// only for use by the symbol table
0
-
bool isGensym; // in macro evaluation, symbol is replaced with an automatically-generated unique symbol.
0
+
bool isGensym; // in macro evaluation, symbol is replaced with an automatically-generated unique symbol.
0
/*! Get the global value of a symbol. */
Comments
No one has commented yet.