[antlr-interest] ANTLR Problem

Jörg Riedl Jrydl at web.de
Thu Jun 29 01:33:16 PDT 2006



Hello. 

I have a problem with ANTLR. 
The Consol throws the following exception! 

Antlr.g:654:4: ANTLR could not analyze this decision in rule UpperBound probably due to a true ambiguity in the grammar or left-recursion problems. ANTLR re-analyzed the decision with a fixed lookahead of k=1. 

[12:36:01] Antlr.g:654:4: Decision can match input such as "'i'" using multiple alternatives: 

alt 1 via NFA path 2596,2584,860,7423,7421,876,7503,7492,878,7516,7504,880,7529,7517,882,7540,7535,7536,7537,884,7551,7541,886,7562,7552,888,7573,7563,890,7587,7574,892,7602,7588,894,7617,7603,896,7630,7625,7626,7627,898,7641,7631,900,7652,7642,902,7661,7656,7657,7658,904,7673,7662,908,7718,7694,496,4498,4475,498,4550,4504,128,1985,1980,1979,1975,6,1008,1006,8,1011,1009,748,6404,6392,750,6410,6411,6407,756,6426,6425,6424 

alt 2 via NFA path 2596,2597,2586,2587 

As a result, alternative(s) 2 were disabled for that input 

[12:36:01] Antlr.g:654:4: The following alternatives are unreachable: 2 


code : 
UpperBound 
: SingleConstExpression | 'infinity' 
; 


What can i do to solve that problem?

 

 


	
Verschicken Sie romantische, coole und witzige Bilder per SMS! 
Jetzt bei WEB.DE FreeMail: *http://f.web.de/?mc=021193* [http://f.web.de/?mc=021193] 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060629/73621890/attachment.html


More information about the antlr-interest mailing list