Hi! To generate a custom catch clause in the parser one can write: @rulecatch { ..code.. } How do I accomplish the same thing in the lexer? /mats -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090118/f70735b7/attachment.html