| Package | Description |
|---|---|
| org.antlr.grammar.v3 | |
| org.antlr.tool |
| Modifier and Type | Method and Description |
|---|---|
Grammar.LabelElementPair |
ActionTranslator.getElementLabel(java.lang.String id) |
| Modifier and Type | Field and Description |
|---|---|
java.util.LinkedHashMap<java.lang.String,Grammar.LabelElementPair> |
Rule.charLabels
A list of all LabelElementPair attached to single char literals like x='a'
|
protected java.util.Map<java.lang.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.
|
java.util.LinkedHashMap<java.lang.String,Grammar.LabelElementPair> |
Rule.ruleLabels
A list of all LabelElementPair attached to rule references like f=field
|
java.util.LinkedHashMap<java.lang.String,Grammar.LabelElementPair> |
Rule.ruleListLabels
A list of all rule ref list LabelElementPair like ids+=expr
|
java.util.LinkedHashMap<java.lang.String,Grammar.LabelElementPair> |
Rule.tokenLabels
A list of all LabelElementPair attached to tokens like id=ID
|
java.util.LinkedHashMap<java.lang.String,Grammar.LabelElementPair> |
Rule.tokenListLabels
A list of all Token list LabelElementPair like ids+=ID
|
java.util.LinkedHashMap<java.lang.String,Grammar.LabelElementPair> |
Rule.wildcardTreeLabels
A list of all LabelElementPair attached to tokens like x=.
|
java.util.LinkedHashMap<java.lang.String,Grammar.LabelElementPair> |
Rule.wildcardTreeListLabels
A list of all LabelElementPair attached to tokens like x+=.
|
| Modifier and Type | Method and Description |
|---|---|
Grammar.LabelElementPair |
Rule.getLabel(java.lang.String name) |
Grammar.LabelElementPair |
Rule.getRuleLabel(java.lang.String name) |
Grammar.LabelElementPair |
Rule.getRuleListLabel(java.lang.String name) |
Grammar.LabelElementPair |
Rule.getTokenLabel(java.lang.String name) |
Grammar.LabelElementPair |
Rule.getTokenListLabel(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,Grammar.LabelElementPair> |
Rule.getRuleLabels() |
java.util.Map<java.lang.String,Grammar.LabelElementPair> |
Rule.getRuleListLabels() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
Grammar.removeUselessLabels(java.util.Map<java.lang.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.
|