| java.lang.Object org.antlr.tool.NameSpaceChecker
NameSpaceChecker | public class NameSpaceChecker (Code) | | |
checkConflicts | public void checkConflicts()(Code) | | |
checkForGlobalScopeTokenConflict | protected void checkForGlobalScopeTokenConflict(AttributeScope scope)(Code) | | |
checkForLabelConflict | protected void checkForLabelConflict(Rule r, antlr.Token label)(Code) | | Make sure a label doesn't conflict with another symbol.
Labels must not conflict with: rules, tokens, scope names,
return values, parameters, and rule-scope dynamic attributes
defined in surrounding rule.
|
checkForLabelTypeMismatch | public boolean checkForLabelTypeMismatch(Rule r, antlr.Token label, int type)(Code) | | If type of previous label differs from new label's type, that's an error.
|
checkForRuleArgumentAndReturnValueConflicts | protected void checkForRuleArgumentAndReturnValueConflicts(Rule r)(Code) | | |
checkForRuleDefinitionProblems | protected void checkForRuleDefinitionProblems(Rule r)(Code) | | |
checkForRuleScopeAttributeConflict | public void checkForRuleScopeAttributeConflict(Rule r, Attribute attribute)(Code) | | Check for collision of a rule-scope dynamic attribute with:
arg, return value, rule name itself. Labels are checked elsewhere.
|
lookForReferencesToUndefinedSymbols | protected void lookForReferencesToUndefinedSymbols()(Code) | | If ref to undefined rule, give error at first occurrence.
If you ref ID in a combined grammar and don't define ID as a lexer rule
it is an error.
|
|
|