On Feb 23, 2011, at 5:07 PM, Sam Harwell wrote: > Inside the following rewrite: > > e : e '*' b=e -> ^(...); > > e refers to the first e (the one right after the ':' in the rule) > $e refers to the enclosing rule (the tree created so far) > $b refers to the second e (the one labeled 'b=')
Yep, I think that this is the way I got it working now. > I'm sure you've noticed I've been pushing AST operators recently. :) With They are very nice for expressions, which was the major motivation for their creation back in '92. > the extended syntax, [I've got to go look at your extended syntax now; ok, i'll think about that one] Ter List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
