[antlr-interest] Customized Error Messages

Sapna Mirje sapna.mirje at xecomit.com
Tue Jul 26 00:14:14 PDT 2005


Hello,

    I am writing a grammar to parse a given expression. However I want to
display appropriate error messages to the user instead of antlrs default
error messages like "expected 'a' found '['" . I have tried with setting
option of parser defaulthandler= false and setting paraphrases for each
rule. Have also tried with customized exception handling for each rule. Just
wanted to know if there are any more ways in which i can create my own error
messages?????
Also can we define paraphrases for lexer. It allowed me to set it in lexer
but did not show the the same in erro message.

Regard's
Sapna



This message was checked by MailScan for WorkgroupMail.
www.workgroupmail.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20050726/b41cd8b5/attachment.html


More information about the antlr-interest mailing list