Package | Description |
---|---|
org.antlr.grammar.v3 | |
org.antlr.tool |
Modifier and Type | Method | Description |
---|---|---|
Grammar.LabelElementPair |
ActionTranslator.getElementLabel(String id) |
Modifier and Type | Field | Description |
---|---|---|
LinkedHashMap<String,Grammar.LabelElementPair> |
Rule.charLabels |
A list of all LabelElementPair attached to single char literals like x='a'
|
protected Map<String,Grammar.LabelElementPair> |
Rule.labelNameSpace |
All labels go in here (plus being split per the above lists) to
catch dup label and label type mismatches.
|
LinkedHashMap<String,Grammar.LabelElementPair> |
Rule.ruleLabels |
A list of all LabelElementPair attached to rule references like f=field
|
LinkedHashMap<String,Grammar.LabelElementPair> |
Rule.ruleListLabels |
A list of all rule ref list LabelElementPair like ids+=expr
|
LinkedHashMap<String,Grammar.LabelElementPair> |
Rule.tokenLabels |
A list of all LabelElementPair attached to tokens like id=ID
|
LinkedHashMap<String,Grammar.LabelElementPair> |
Rule.tokenListLabels |
A list of all Token list LabelElementPair like ids+=ID
|
LinkedHashMap<String,Grammar.LabelElementPair> |
Rule.wildcardTreeLabels |
A list of all LabelElementPair attached to tokens like x=.
|
LinkedHashMap<String,Grammar.LabelElementPair> |
Rule.wildcardTreeListLabels |
A list of all LabelElementPair attached to tokens like x+=.
|
Modifier and Type | Method | Description |
---|---|---|
Grammar.LabelElementPair |
Rule.getLabel(String name) |
|
Grammar.LabelElementPair |
Rule.getRuleLabel(String name) |
|
Grammar.LabelElementPair |
Rule.getRuleListLabel(String name) |
|
Grammar.LabelElementPair |
Rule.getTokenLabel(String name) |
|
Grammar.LabelElementPair |
Rule.getTokenListLabel(String name) |
Modifier and Type | Method | Description |
---|---|---|
Map<String,Grammar.LabelElementPair> |
Rule.getRuleLabels() |
|
Map<String,Grammar.LabelElementPair> |
Rule.getRuleListLabels() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
Grammar.removeUselessLabels(Map<String,Grammar.LabelElementPair> ruleToElementLabelPairMap) |
A label on a rule is useless if the rule has no return value, no
tree or template output, and it is not referenced in an action.
|
Copyright © 1992–2019 ANTLR. All rights reserved.