[antlr-interest] A wish

Naveen Chawla naveen.chwl at googlemail.com
Mon Oct 5 07:54:12 PDT 2009


Yes but unfortunately the syntax diagram shows only the path surrounding
that particular token. Not the phrase which raises that ambiguity. I'm happy
with the syntax diagram as it is, just want to know the preceding phrase
which raises that ambiguity. I wonder if this is actually impossible for the
ANTLR developers to give, or if it's really easy, or if there's already an
ANTLR option to see it in the warning/error message.

2009/10/5 Indhu Bharathi <indhu.b at s7software.com>

>  ANTLRWORKS already has this feature. Compile your grammar in ANTLRWORKS.
> When there is an ambiguity, the rule will be marked in red and you can check
> the “Syntax diagram” tab to graphically see the ambiguity.
>
>
>
>
>
> *From:* antlr-interest-bounces at antlr.org [mailto:
> antlr-interest-bounces at antlr.org] *On Behalf Of *Naveen Chawla
> *Sent:* Monday, October 05, 2009 7:44 PM
> *To:* antlr-interest at antlr.org
> *Subject:* [antlr-interest] A wish
>
>
>
> I wish "Decision can match input such as ... using multiple alternatives"
> would show the whole phrase that raises the ambiguity, and not just the
> token.
>
>
>
> Is there an easy way to find this out?
>
> Would it be easy for it to be introduced into ANTLR, or do I always have to
> see only the token every time (and not be able to know the phrase)?
>
>
>
> N
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20091005/6625eb2d/attachment.html 


More information about the antlr-interest mailing list