Monday, April 9, 2001 04:23 PM
a : d ( (b)* | b | (b)+ c b ) d ;
you'll have to tell me what b, c, d are I think.
Most importantly though, you need to left-factor things. ANTLR parsers need to decide from the left-edge what production to match. If everything starts with b, it can't decide. How about factoring (b)* out of the (...) or something.