[antlr-interest] non-determinism... please help...

Bryan Ewbank ewbank at gmail.com
Mon Apr 18 02:32:19 PDT 2005


Tavi gently pointed out that I misread his grammer.  Seems my older
eyes could not tell the difference between /dot/ and /colon/ in single
quotes.  Please disregard the discussion of collapsing prefix1 in my
previous email.

Off to the eye doctor for new glasses ;-)

- Bryan

On 4/17/05, Bryan Ewbank <ewbank at gmail.com> wrote:
> Looking just at /prefix1/, the second and fourth alternatives need to
> be collapsed - they are currently ambiguous - so that ANTLR can digest
> them:
> 
>   prefix1 : '[' exp ']'
>             : '.' ID ( args )?
>             : args
>             ;
> 
> > prefix1 : '[' exp ']'
> >           : '.' ID
> >           : args
> >           : ':' ID args
> >           ;
>


More information about the antlr-interest mailing list