public class SymbolChecks extends Object
| Modifier and Type | Field and Description |
|---|---|
ErrorManager |
errMgr
|
protected Set |
reservedNames
|
| Constructor and Description |
|---|
SymbolChecks(Grammar
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkActionRedefinitions(List
|
protected void |
checkDeclarationRuleConflicts(Rule
|
void |
checkForAttributeConflicts(Rule
|
void |
checkForLabelConflict(Rule
|
void |
checkForLabelConflicts(Collection
Make sure a label doesn't conflict with another symbol.
|
void |
checkForModeConflicts(Grammar
|
void |
checkForQualifiedRuleIssues(Grammar
|
void |
checkForTokenConflicts(List
|
protected void |
checkLocalConflictingDeclarations(Rule
|
protected void |
checkReservedNames(Collection
|
void |
checkRuleArgs(Grammar
|
void |
process()
|
public ErrorManagererrMgr
public SymbolChecks(Grammarg, 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(Ruler, GrammarAST labelID)
public void checkForAttributeConflicts(Ruler)
protected void checkDeclarationRuleConflicts(Ruler, AttributeDict attributes, Set <String > ruleNames, ErrorType errorType)
protected void checkLocalConflictingDeclarations(Ruler, AttributeDict attributes, AttributeDict referenceAttributes, ErrorType errorType)
protected void checkReservedNames(Collection<Rule > rules)
public void checkForModeConflicts(Grammarg)
public void checkRuleArgs(Grammarg, List <GrammarAST > rulerefs)
public void checkForQualifiedRuleIssues(Grammarg, List <GrammarAST > qualifiedRuleRefs)