Hi Jonne, *On Sun, Aug 28, 2011 at 10:26 PM, Jonne Zutt <jonne.zutt...@gmail.com> wrote: * > > *... > > > pieces > : ('p'|'P' | 'n'|'N' | 'b'|'B' | 'r'|'R' | 'q'|'Q' | 'k'|'K' | > '1'..'8')+; > *
In parser rules, you _can_ use "literal tokens", but it's best to refrain from doing this: create separate lexer rules for them. And the `..` (range operator) is only valid inside lexer rules. So the rules `enPassant` and `pieces` are not doing what you think they are. Change those things and try your grammar again. Regards, Bart. 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 il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.