[antlr-interest] hasPredicateBlockedByAction ???
Avid Trober
avidtrober at gmail.com
Thu May 7 19:26:39 PDT 2009
Hi,
does anybody know how to determine the source of an error such as this?
the wiki says convert the grammar to v3; it is a v3 grammar.
Thanks.
ANTLR Parser Generator Version 3.1 (August 12, 2008) 1989-2008
error(10): internal error: JavaScript.g : java.util.NoSuchElementException: no
such attribute: hasPredicateBlockedByAction in template context [TOKEN_NONDETERM
INISM]
org.antlr.stringtemplate.StringTemplate.rawSetAttribute(StringTemplate.java:647)
org.antlr.stringtemplate.StringTemplate.setAttribute(StringTemplate.java:508)
org.antlr.tool.GrammarNonDeterminismMessage.toString(GrammarNonDeterminismMessag
e.java:124)
org.antlr.tool.ErrorManager$4.warning(ErrorManager.java:301)
org.antlr.tool.ErrorManager.nondeterminism(ErrorManager.java:648)
org.antlr.analysis.DecisionProbe.issueWarnings(DecisionProbe.java:453)
org.antlr.analysis.DFA.<init>(DFA.java:239)
org.antlr.tool.Grammar.createLookaheadDFA(Grammar.java:1225)
org.antlr.tool.Grammar.createLookaheadDFAs(Grammar.java:970)
org.antlr.tool.Grammar.createLookaheadDFAs(Grammar.java:920)
org.antlr.codegen.Target.performGrammarAnalysis(Target.java:114)
org.antlr.codegen.CodeGenerator.genRecognizer(CodeGenerator.java:293)
org.antlr.Tool.generateRecognizer(Tool.java:419)
org.antlr.Tool.process(Tool.java:341)
org.antlr.Tool.main(Tool.java:71)
I found one hit in the wiki that states the grammar is a v2.x and needs to be reformatted to v3. I think the grammar is v3, its the ECMAScript example on the ANTLR grammars page:http://www.antlr.org/grammar/1206736738015/JavaScript.g
Regards,
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090507/3c5fa10c/attachment.html
More information about the antlr-interest
mailing list