| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public Grammar | implicitLexerOwner
The grammar from which this lexer grammar was derived (if implicit) |
| public MultiMap | modes
DEFAULT_MODE rules are added first due to grammar syntax order |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | defineRule(Rule
The rule to define in the grammar. r)Overrides org. |
| public boolean | undefineRule(Rule r)
Overrides org. Grammar instance.
|
| DEFAULT_MODE_NAME | back to summary |
|---|---|
| public static final String DEFAULT_MODE_NAME | |
| implicitLexerOwner | back to summary |
|---|---|
| public Grammar implicitLexerOwner The grammar from which this lexer grammar was derived (if implicit) | |
| modes | back to summary |
|---|---|
| public MultiMap<String, Rule> modes DEFAULT_MODE rules are added first due to grammar syntax order | |
| LexerGrammar | back to summary |
|---|---|
| public LexerGrammar(Tool tool, GrammarRootAST ast) | |
| LexerGrammar | back to summary |
|---|---|
| public LexerGrammar(String grammarText) throws RecognitionException | |
| LexerGrammar | back to summary |
|---|---|
| public LexerGrammar(String grammarText, ANTLRToolListener listener) throws RecognitionException | |
| LexerGrammar | back to summary |
|---|---|
| public LexerGrammar(String fileName, String grammarText, ANTLRToolListener listener) throws RecognitionException | |
| defineRule | back to summary |
|---|---|
| public boolean defineRule(Rule r) Overrides org. Doc from org. Define the specified rule in the grammar. This method assigns the rule's
| |
| undefineRule | back to summary |
|---|---|
| public boolean undefineRule(Rule r) Overrides org. Doc from org. Undefine the specified rule from this
This method does nothing if the current | |