Scope Class Reference

Nested Symbol Table. More...

#import <scope.h>

List of all members.

Public Member Functions

(Scope *) - begin
 Creates a new nesting level.
(Scope *) - end
 Ends a nesting level.
(void) - add:to:
 Adds a symbol to the table.
(id) - find:
 Searches for a symbol in self and parents.

Protected Attributes

SymTabletable
Scopeparent


Detailed Description

Nested Symbol Table.


Member Function Documentation

- (Scope *) begin  

Creates a new nesting level.

Returns:
a Scope for the newly nested level

- (Scope *) end  

Ends a nesting level.

Also frees self.

Returns:
parent Scope of self

- (id) find: (char *)  key  

Searches for a symbol in self and parents.

Parameters:
key The key for the mapping
Returns:
The value of the mapping


The documentation for this class was generated from the following files:
Generated on Mon Dec 24 06:11:58 2007 for gfront by  doxygen 1.5.2