[antlr-interest] weird ambiguity / bug

Lloyd Dupont ld at galador.net
Fri Jul 13 21:14:30 PDT 2007


I have a rule like below which works OK:
====
dotidlist
 : ( DOT^ ID ) +
 ;
====

however if I make it a fragment, as in:
=====
fragment
dotidlist
 : ( DOT^ ID ) +
 ;
=====

I get the following warning:
==
[14:12:36] warning(200): G:\Dev\ANTLR\tests\ExpTest.g:170:14: Decision can match input such as "DOT" using multiple alternatives: 1, 2
As a result, alternative(s) 2 were disabled for that input
==
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070714/8f40e59b/attachment.html 


More information about the antlr-interest mailing list