GrammarElementpublic abstract class GrammarElement extends 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. |
Fields Summary |
---|
public static final int | AUTO_GEN_NONE | public static final int | AUTO_GEN_CARET | public static final int | AUTO_GEN_BANG | protected Grammar | grammar | protected int | line | protected int | column |
Constructors Summary |
---|
public GrammarElement(Grammar g)
grammar = g;
line = -1;
column = -1;
| public GrammarElement(Grammar g, Token start)
grammar = g;
line = start.getLine();
column = start.getColumn();
|
|