[antlr-interest] Determinig the real ambiguities
Anakreon
anakreonmejdi at yahoo.gr
Thu Jul 15 12:36:28 PDT 2004
Monty should have provided the answer to your question.
Instead of
a_must_have_c : (A)? (B)+ C D | (B)+ D ;
I would try this to resolve the ambiguities:
a_must_have_c
:
A (B)+ C D
| (B)+ (C)? D
;
I guess this should not generate ambiguities and matches
the same input as your version of a_must_have_c.
Anakreon.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list