Stefan wrote: > Oh, I see. Could you please tell me when I should write lexer rules > instead of parser rules? What's the difference? Where can I read about > it more? Look here: <http://www.antlr.org/wiki/display/ANTLR3/Quick+Starter+on+Parser+Grammars+-+No+Past+Experience+Required> Best regards, Johannes Luber