[antlr-interest] Possible bug with backtrack-generated predicate methods
franck102
franck102 at yahoo.com
Sat Nov 26 01:38:42 PST 2011
Bart Kiers wrote
>
> On Sat, Nov 26, 2011 at 9:58 AM, franck102 <franck102@> wrote:
>
>> In fact the tree has been constructed by the leading (ID->ID),
>
>
> That tree only exists inside your parenthesis, AFAIK. You can't reference
> it outside it (well, you can, but it will be `null`).
>
This seems to work for me, I am referring to it using $expr. The rewrite in
(ID->ID) sets the global tree afaik.
--
View this message in context: http://antlr.1301665.n2.nabble.com/Possible-bug-with-backtrack-generated-predicate-methods-tp7033324p7033470.html
Sent from the ANTLR mailing list archive at Nabble.com.
More information about the antlr-interest
mailing list