[antlr-interest] Re: Comments and questions on a recent proje
ct
Tiller, Michael (M.M.)
mtiller at ford.com
Wed Aug 28 10:57:59 PDT 2002
Just one thing to point out. Even though it complains about this, the parser seems to do what I want, under the different cases I have tested. So my main goal here is to get rid of the warning.
--
Mike
> -----Original Message-----
> From: Tiller, Michael (M.M.) [mailto:mtiller at ford.com]
> Sent: Wednesday, August 28, 2002 1:44 PM
> To: 'antlr-interest at yahoogroups.com'
> Subject: RE: [antlr-interest] Re: Comments and questions on a recent
> proje ct
>
>
> One other question. I have a rule where there is an
> ambiguity between one alternative in a block and the exit of
> the block. I'd like to try and use syntactic predicates to
> avoid this situation. I understand how to use syntactic
> predicates to control choice of alternatives within a rule.
> How can you use them when one of the choices is an exit from
> a rule?!? I tried moving the syntactic predicate up one
> level in the grammar, but I still get non-deterministic
> warnings in the original rule.
>
> I saw this in the ANTLR documentation:
>
> a
> : (A (P)*) => A (P)*
> | A
> ;
>
> This was pretty close to what I have, but it didn't seem to
> make a difference.
>
> Any suggestions?
>
> --
> Mike
>
>
>
> 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