[antlr-interest] could not even do k=1 for decision 126; reason: timed out
YINGAnnie
yimm8369 at hotmail.com
Wed Mar 25 15:57:50 PDT 2009
Hi ,
I have another question about grammar:
If I use the following grammar, it works fine.
multiplicativeExpression
: unaryExpression ((STAR|DIV|MOD)^ u=unaryExpression)*
;
But when I change it to
multiplicativeExpression
: unaryExpression (STAR^ unaryExpression)*
| unaryExpression (DIV^ unaryExpression)*
| unaryExpression (MOD^ unaryExpression)*
;
But I got
(10): internal error: org.antlr.tool.Grammar.createLookaheadDFA(Grammar.java:1228): could not even do k=1 for decision 126; reason: timed out (>1000ms)
It seems the two grammar are the same,I dont know why?
Annie
_________________________________________________________________
梦幻K图,百变造型,让你的照片与众不同,快来MClub试试吧!
http://club.msn.cn/?form=3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090326/cfb7cd00/attachment.html
More information about the antlr-interest
mailing list