[antlr-interest] Can someone please explain
Balvinder Singh
bals1978 at hotmail.com
Fri Jun 21 00:12:42 PDT 2002
Hi..
Use syntactic predicate like this
(A(B)?)=>A(B)?
It will remove the warnings but I'm not sure about run time behaviour...
and not sure if you add some new production, whether i will work or not.
bals
----- Original Message -----
From: "Silvain Piree" <s.piree at enneya.com>
To: <antlr-interest at yahoogroups.com>
Sent: Friday, June 21, 2002 12:21 PM
Subject: [antlr-interest] Can someone please explain
>
> Hi,
>
> I'm getting nondeterminism warnings on my grammar but
> I don't understand why.
>
> Following rule does not cause a problem when using k=5:
>
> rule: A B C D E | A B C D F ;
>
> But, when I make the B optional then I get a nondeterminism
> warning regardless of lookahead 'k':
>
> rule: A (B)? C D E | A (B)? C D F ;
>
> Any suggestions would be much appreciated,
>
> Silvain
>
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list