You didn’t include enough of your grammar to determine what is going on.
Can you include a complete example that demonstrates the problem, which we can build and run locally?
Thanks,
Sam
From: antlr-di...@googlegroups.com [mailto:antlr-di...@googlegroups.com]
Sent: Monday, July 28, 2014 3:43 PM
To: antlr-di...@googlegroups.com
Subject: [antlr-discussion] rule as ambiguous and not being applied as desired
Dear Fellows
I am attaching a .png to make my question clear. please zoom it if it appears small when opened.
Basically the situation when oversimplified is this.
a: Number ;
b: Name ;
ab: a b ;
abc: ab a ;
abcCall: ab
| abc ;
when input is: 1N2 and not 1N , parsed by rule abcCall ,
instead of being parsed by rule abc once it is being parsed twice
1) by ab as a b
2) then by abc as c
making it two separate expressions where as it should be one single expression.
Thanks
Regards
Right_Then
--
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
antlr-discussi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.