I got this answer for lexer error, but how to exit on parser error? Thanks and regards, Harshada. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080912/43493b84/attachment.html