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 <indh...@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-boun...@antlr.org [mailto: > antlr-interest-boun...@antlr.org] *On Behalf Of *Naveen Chawla > *Sent:* Monday, October 05, 2009 7:44 PM > *To:* antlr-inter...@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 > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to il-antlr-interest@googlegroups.com To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address