v4: check for labels that alias a token name

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9346]
This commit is contained in:
sharwell 2011-11-17 17:00:08 -08:00
parent f356cd42d1
commit 062210b54a
1 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,10 @@ public class SymbolChecks {
this.g = g;
this.collector = collector;
this.errMgr = g.tool.errMgr;
for (GrammarAST tokenId : collector.tokenIDRefs) {
tokenIDs.add(tokenId.getText());
}
/*
System.out.println("rules="+collector.rules);
System.out.println("rulerefs="+collector.rulerefs);