Is there a way to make a sequence
'X'^ ('Y'^ other)
yield a tree like (X (Y other)) instead of just Y? Because whenever it encounters ^ it makes the token root of a new tree forgetting about the past. The above mentioned code is straightforward generated from a different language. So it's hard to move the code in brackets into a separate rule or use rewrite rules.

<<attachment: mail.vcf>>

_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org/mailman/listinfo/antlr-dev

Reply via email to