coursesolutions
Class CourseBuildSymtab
java.lang.Object
lab8.Symtab
coursesolutions.CourseBuildSymtab
- All Implemented Interfaces:
- SymtabInterface
public class CourseBuildSymtab
- extends Symtab
- implements SymtabInterface
Class sponsored implementation of a symbol table.
You should see this message but not the code!
|
Field Summary |
static boolean |
debug
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
debug
public static boolean debug
CourseBuildSymtab
public CourseBuildSymtab()
out
public void out(java.lang.String s)
- Specified by:
out in interface SymtabInterface- Overrides:
out in class Symtab
incrNestLevel
public void incrNestLevel()
- Description copied from interface:
SymtabInterface
- Open a new nest
- Specified by:
incrNestLevel in interface SymtabInterface
decrNestLevel
public void decrNestLevel()
- Description copied from interface:
SymtabInterface
- Close an old nest
- Specified by:
decrNestLevel in interface SymtabInterface
getCurrentNestLevel
public int getCurrentNestLevel()
- Specified by:
getCurrentNestLevel in interface SymtabInterface- Specified by:
getCurrentNestLevel in class Symtab
lookup
public SymInfo lookup(java.lang.String id)
- Specified by:
lookup in interface SymtabInterface
enter
public void enter(java.lang.String id,
SymInfo s)
- Specified by:
enter in interface SymtabInterface