Package antlr
Class GrammarElement
java.lang.Object
antlr.GrammarElement
- Direct Known Subclasses:
AlternativeElement
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
protected int
protected Grammar
protected int
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
AUTO_GEN_NONE
public static final int AUTO_GEN_NONE- See Also:
-
AUTO_GEN_CARET
public static final int AUTO_GEN_CARET- See Also:
-
AUTO_GEN_BANG
public static final int AUTO_GEN_BANG- See Also:
-
grammar
-
line
protected int line -
column
protected int column
-
-
Constructor Details
-
GrammarElement
-
GrammarElement
-
-
Method Details