Package | Description |
---|---|
org.antlr.tool |
Modifier and Type | Class | Description |
---|---|---|
class |
RuleLabelScope |
Modifier and Type | Field | Description |
---|---|---|
static AttributeScope[] |
RuleLabelScope.grammarTypeToRulePropertiesScope |
|
AttributeScope |
Rule.parameterScope |
|
static AttributeScope |
RuleLabelScope.predefinedLexerRulePropertiesScope |
|
static AttributeScope |
RuleLabelScope.predefinedRulePropertiesScope |
Rules have a predefined set of attributes as well as
the return values.
|
static AttributeScope |
RuleLabelScope.predefinedTreeRulePropertiesScope |
|
AttributeScope |
Rule.returnScope |
The return values of a rule and predefined rule attributes
|
AttributeScope |
Rule.ruleScope |
the attributes defined with "scope {...}" inside a rule
|
static AttributeScope |
AttributeScope.tokenScope |
All token scopes (token labels) share the same fixed scope of
of predefined attributes.
|
Modifier and Type | Field | Description |
---|---|---|
protected Map<String,AttributeScope> |
Grammar.scopes |
Track the scopes defined outside of rules and the scopes associated
with all rules (even if empty).
|
Modifier and Type | Method | Description |
---|---|---|
AttributeScope |
Grammar.createParameterScope(String ruleName,
org.antlr.runtime.Token argAction) |
|
AttributeScope |
Grammar.createReturnScope(String ruleName,
org.antlr.runtime.Token retAction) |
|
AttributeScope |
Grammar.createRuleScope(String ruleName,
org.antlr.runtime.Token scopeAction) |
|
AttributeScope |
Grammar.defineGlobalScope(String name,
org.antlr.runtime.Token scopeAction) |
|
AttributeScope |
Rule.getAttributeScope(String name) |
Return the scope containing name
|
AttributeScope |
Grammar.getGlobalScope(String name) |
Get a global scope
|
AttributeScope |
Rule.getLocalAttributeScope(String name) |
Get the arg, return value, or predefined property for this rule
|
Modifier and Type | Method | Description |
---|---|---|
Map<String,AttributeScope> |
Grammar.getGlobalScopes() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
NameSpaceChecker.checkForGlobalScopeTokenConflict(AttributeScope scope) |
|
Set<String> |
AttributeScope.intersection(AttributeScope other) |
Return the set of keys that collide from
this and other.
|
Copyright © 1992–2019 ANTLR. All rights reserved.