public class Variable extends Symbol
Modifier and Type | Field and Description |
---|---|
protected Declarator |
declarator |
identifier
Constructor and Description |
---|
Variable(java.lang.String sym,
Declarator d) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
Is a method for the visitor pattern.
|
Declarator |
getDeclarator() |
java.lang.String |
toString() |
protected Declarator declarator
public Variable(java.lang.String sym, Declarator d)
public Declarator getDeclarator()
public void accept(Visitor v) throws CompileError
ASTree
atXXX()
on the given visitor, where
XXX
is the class name of the node object.accept
in class Symbol
CompileError