com.jeffpalm.cop5555.constrainer
Class Constrainer
java.lang.Object
com.jeffpalm.cop5555.constrainer.Constrainer
public class Constrainer
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
table
protected Table table
scope
protected int scope
offset
protected int offset
eh
protected ErrorHandler eh
file
protected java.lang.String file
GLOBAL
public static final int GLOBAL
- See Also:
- Constant Field Values
LOCAL
public static final int LOCAL
- See Also:
- Constant Field Values
Constrainer
public Constrainer(Parser p)
openScope
public int openScope()
closeScope
public int closeScope()
lookUp
public TreeNode lookUp(TreeNode n)
enter
public boolean enter(java.lang.String s,
TreeNode t)
enter
public boolean enter(TreeNode t)
isUnique
public boolean isUnique(java.lang.String s)
isDeclared
public boolean isDeclared(java.lang.String s)
isDeclared
public boolean isDeclared(TreeNode n)
error
public void error(int line,
int col,
java.lang.String s)
error
public void error(TreeNode n,
java.lang.String s)
printErrors
public void printErrors()
setOffset
public void setOffset(int _offset)
getOffset
public int getOffset()
incOffset
public int incOffset()
getScope
public int getScope()
hasErrors
public boolean hasErrors()
fatal
public void fatal()