antlr
Class GrammarElement
java.lang.Object
|
+--antlr.GrammarElement
- Direct Known Subclasses:
- AlternativeElement
- abstract class GrammarElement
- extends java.lang.Object
A GrammarElement is a generic node in our
data structure that holds a grammar in memory.
This data structure can be used for static
analysis or for dynamic analysis (during parsing).
Every node must know which grammar owns it, how
to generate code, and how to do analysis.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AUTO_GEN_NONE
public static final int AUTO_GEN_NONE
- See Also:
- Constant Field Values
AUTO_GEN_CARET
public static final int AUTO_GEN_CARET
- See Also:
- Constant Field Values
AUTO_GEN_BANG
public static final int AUTO_GEN_BANG
- See Also:
- Constant Field Values
grammar
protected Grammar grammar
line
protected int line
GrammarElement
public GrammarElement(Grammar g)
generate
public void generate()
getLine
public int getLine()
look
public Lookahead look(int k)
toString
public abstract java.lang.String toString()
- Overrides:
toString
in class java.lang.Object