Package | Description |
---|---|
org.antlr.tool |
Modifier and Type | Class and Description |
---|---|
class |
RuleLabelScope |
Modifier and Type | Field and 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 and 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 and Description |
---|---|
AttributeScope |
Grammar.createParameterScope(String ruleName,
Token argAction) |
AttributeScope |
Grammar.createReturnScope(String ruleName,
Token retAction) |
AttributeScope |
Grammar.createRuleScope(String ruleName,
Token scopeAction) |
AttributeScope |
Grammar.defineGlobalScope(String name,
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 and Description |
---|---|
Map<String,AttributeScope> |
Grammar.getGlobalScopes() |
Modifier and Type | Method and 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–2015 ANTLR. All rights reserved.