public class SymbolChecks extends Object
Modifier and Type | Field and Description |
---|---|
ErrorManager |
errMgr |
Constructor and Description |
---|
SymbolChecks(Grammar g,
SymbolCollector collector) |
Modifier and Type | Method and Description |
---|---|
void |
checkActionRedefinitions(List<GrammarAST> actions) |
protected void |
checkDeclarationRuleConflicts(Rule r,
AttributeDict attributes,
Set<String> ruleNames,
ErrorType errorType) |
void |
checkForAttributeConflicts(Rule r) |
void |
checkForLabelConflict(Rule r,
GrammarAST labelID) |
void |
checkForLabelConflicts(Collection<Rule> rules)
Make sure a label doesn't conflict with another symbol.
|
void |
checkForQualifiedRuleIssues(Grammar g,
List<GrammarAST> qualifiedRuleRefs) |
void |
checkForTokenConflicts(List<GrammarAST> tokenIDRefs) |
protected void |
checkLocalConflictingDeclarations(Rule r,
AttributeDict attributes,
AttributeDict referenceAttributes,
ErrorType errorType) |
void |
checkRuleArgs(Grammar g,
List<GrammarAST> rulerefs) |
void |
process() |
public ErrorManager errMgr
public SymbolChecks(Grammar g, SymbolCollector collector)
public void process()
public void checkActionRedefinitions(List<GrammarAST> actions)
public void checkForTokenConflicts(List<GrammarAST> tokenIDRefs)
public void checkForLabelConflicts(Collection<Rule> rules)
public void checkForLabelConflict(Rule r, GrammarAST labelID)
public void checkForAttributeConflicts(Rule r)
protected void checkDeclarationRuleConflicts(@NotNull Rule r, @Nullable AttributeDict attributes, @NotNull Set<String> ruleNames, @NotNull ErrorType errorType)
protected void checkLocalConflictingDeclarations(@NotNull Rule r, @Nullable AttributeDict attributes, @Nullable AttributeDict referenceAttributes, @NotNull ErrorType errorType)
public void checkRuleArgs(Grammar g, List<GrammarAST> rulerefs)
public void checkForQualifiedRuleIssues(Grammar g, List<GrammarAST> qualifiedRuleRefs)
Copyright © 1992–2014 ANTLR. All rights reserved.