At 00:46 3/08/2007, Jan Obdrzalek wrote: >what is the correct way to write this rewrite rule? > > : '{' (a | b | c)* '}' -> ^(COMPOUND (a | b | c)*) Haven't tried it, but this ought to work: x : '{' y* '}' -> ^(COMPOUND y*); y : a | b | c;