LKSymbolTable documentation

Authors

Generated by builder

Contents -

  1. Software documentation for the LKSymbol class
  2. Software documentation for the LKSymbolTable class
  3. LKSymbolTable types
  4. LKSymbolTable functions

Software documentation for the LKSymbol class

LKSymbol : NSObject

Declared in:
LKSymbolTable.h

LKSymbol wraps entries in a symbol table.

Software documentation for the LKSymbolTable class

LKSymbolTable : NSObject

Declared in:
LKSymbolTable.h

Symbol table. Base class, with subclasses for each scope.

Method summary

lookupTableForClass: 

+ (LKSymbolTable*) lookupTableForClass: (id)aClassName;

Returns the symbol table for a class. If the class exists, then this will be populated with its instance variables. If not, then it return nil.


symbolTableForClass: 

+ (LKSymbolTable*) symbolTableForClass: (NSString*)aClassName;

Returns the symbol table for a class. If the class exists, then this will be populated with its instance variables. If not, then it will be empty.


addSymbol: 

- (void) addSymbol: (LKSymbol*)aSymbol;

Add a symbol to this table.


addSymbolsNamed: ofKind: 

- (void) addSymbolsNamed: (NSArray*)anArray ofKind: (LKSymbolScope)kind;

Adds a set of symbols in one call. The symbols have the specified scope and initially have no type assigned to them.


arguments 

- (NSArray*) arguments;

Returns all of the symbols in this table that represent arguments.


byRefVariables 

- (NSArray*) byRefVariables;

Returns all of the symbols in this table that represent external symbols..


classVariables 

- (NSArray*) classVariables;

Returns all of the symbols in this table that represent class variables.


instanceVariables 

- (NSArray*) instanceVariables;

Returns all of the symbols in this table that represent instance variables.


locals 

- (NSArray*) locals;

Returns all of the symbols in this table that represent local variables.


symbolForName: 

- (LKSymbol*) symbolForName: (NSString*)aName;

Looks up the symbol for a specified name.


LKSymbolTable types

LKSymbolQualifier

typedef enum ... LKSymbolQualifier;

Enumeration describing qualifiers.


LKSymbolScope

typedef enum ... LKSymbolScope;

Enumerated type representing the scope of a variable.


LKSymbolTable functions

NSStringFromRuntimeString

NSString* NSStringFromRuntimeString(const char* cString);

Creates an NSString from a string returned by the runtime. These strings are guaranteed to persist for the duration of the program, so there's no need to copy the data.