[antlr-interest] error(10): internal error: TWalker.g : java.lang.IllegalArgumentException: Can't find template tokenRefRuleRoot.st

Cameron Esfahani dirty at apple.com
Tue Aug 7 15:26:52 PDT 2007


Thanks to Gavin Lambert, I fixed the "error(210):  The following sets  
of rules are mutually left-recursive" error I had earlier.

But now I get the following:

ANTLR Parser Generator  Version 3.0 (May 17, 2007)  1989-2007
error(10):  internal error: TWalker.g :  
java.lang.IllegalArgumentException: Can't find template  
tokenRefRuleRoot.st
org.antlr.stringtemplate.StringTemplateGroup.lookupTemplate 
(StringTemplateGroup.java:485)
org.antlr.stringtemplate.StringTemplateGroup.getInstanceOf 
(StringTemplateGroup.java:372)
org.antlr.stringtemplate.StringTemplateGroup.getInstanceOf 
(StringTemplateGroup.java:384)
org.antlr.codegen.CodeGenTreeWalker.getTokenElementST 
(CodeGenTreeWalker.java:160)
org.antlr.codegen.CodeGenTreeWalker.atom(CodeGenTreeWalker.java:1992)
org.antlr.codegen.CodeGenTreeWalker.element(CodeGenTreeWalker.java:1641)
org.antlr.codegen.CodeGenTreeWalker.element(CodeGenTreeWalker.java:1478)
org.antlr.codegen.CodeGenTreeWalker.alternative 
(CodeGenTreeWalker.java:1252)
org.antlr.codegen.CodeGenTreeWalker.block(CodeGenTreeWalker.java:1037)
org.antlr.codegen.CodeGenTreeWalker.ebnf(CodeGenTreeWalker.java:1804)
org.antlr.codegen.CodeGenTreeWalker.element(CodeGenTreeWalker.java:1637)
org.antlr.codegen.CodeGenTreeWalker.alternative 
(CodeGenTreeWalker.java:1252)
org.antlr.codegen.CodeGenTreeWalker.block(CodeGenTreeWalker.java:1037)
org.antlr.codegen.CodeGenTreeWalker.rule(CodeGenTreeWalker.java:753)
org.antlr.codegen.CodeGenTreeWalker.rules(CodeGenTreeWalker.java:544)
org.antlr.codegen.CodeGenTreeWalker.grammarSpec 
(CodeGenTreeWalker.java:486)
org.antlr.codegen.CodeGenTreeWalker.grammar(CodeGenTreeWalker.java:321)
org.antlr.codegen.CodeGenerator.genRecognizer(CodeGenerator.java:406)
org.antlr.Tool.processGrammar(Tool.java:347)
org.antlr.Tool.process(Tool.java:268)
org.antlr.Tool.main(Tool.java:70)

I have no idea even where to begin looking.  Anyone have any ideas?

Cameron Esfahani
dirty at apple.com

"Most people are bad programmers," says Joy. "The honest truth is  
that having a lot of people staring at the code does not find the  
really nasty bugs. The really nasty bugs are found by a couple of  
really smart people who just kill themselves. Most people looking at  
the code won't see anything ... You can't have thousands of people  
contributing and achieve a high standard."

Bill Joy on the myth of Linux's much touted "power in the masses"  
development benefits.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070807/8d681fb4/attachment.html 


More information about the antlr-interest mailing list