[antlr-interest] Preserving subrule order

Johannes Luber jaluber at gmx.de
Sun Nov 4 11:16:52 PST 2007


Hi,

I'm quite sure that I've seen the solution somewhere but I can't seem to
find it. The problem is quite simple:

A : (B|C)*;

I want to rewrite that rule with the order of Bs and Cs preserved. How
do I do it?

Johannes


More information about the antlr-interest mailing list