[antlr-interest] Help me please to correct error
Sriram Durbha
cintyram at yahoo.com
Mon Nov 18 12:10:43 PST 2002
test :(
( A ( B | D ) )
|
( C D )
)
;
may be this will help, actually i did not try this grammar out ,
but i used leftfactoring to avoid one of the ambiguities, that of
deciding on which A to use to match?
i dont know more about it, especially why EOF should also be an
alternative when we have two concrete alts;
/e
cheers
ram
--- alekseyandreev <andreev at quorum.ru> wrote:
> While I have warning for the grammar?
> How shall I change it ?
> Can I get correct grammar without changing
> parentheses positions ?
>
> test :
> ( A B
> | C D
> )
> | ( A D )
> ;
>
> warning: nondeterminism upon
> k==1:A
> k==2:D
> k==3:EOF
>
>
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list