Hello,
We are developing a translator for Business-aware language.
My query is related to Paraphrase for customizing error messages.
We can use paraphrases in Rules to make error messages user-friendly,
however, I could not find a way to replace token names with user-friendly
names.
e.g.:
mismatched input ';' expecting ID. In this message, I want to replace ID
with "an identifier".
ID :('a'..'z'|'A'..'Z'|'_')+('0'..'9')* ;
( options{ paraphrases = "an identifier"; } does not work. )
Any help will be highly appreciated. Thanks.
Regards,
Nilesh Sudhakar Kapile
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org:8080/mailman/listinfo/antlr-dev