[antlr-interest] How do I throw exception on ERROR "no viable alternative at character "
Bharath R
r.bharath at huawei.com
Thu May 14 21:51:54 PDT 2009
Hi All ,
Currentl when I parse my String , I am getting some errors printed in the
console.
Like below : -
line 1:6 no viable alternative at character '?'
line 1:6 no viable alternative at character ' '
and for the other characters also ( '@' ,',' )
Instead of having the System.err , I need the parser to through the
exception.
How Should I achieve this ??
HUAWEI TECHNOLOGIES CO.,LTD. huawei_logo
Address: Huawei Industrial Base
Bantian Longgang
Shenzhen 518129, P.R.China
www.huawei.com
----------------------------------------------------------------------------
---------------------------------------------------------
This e-mail and its attachments contain confidential information from
HUAWEI, which
is intended only for the person or entity whose address is listed above. Any
use of the
information contained herein in any way (including, but not limited to,
total or partial
disclosure, reproduction, or dissemination) by persons other than the
intended
recipient(s) is prohibited. If you receive this e-mail in error, please
notify the sender by
phone or email immediately and delete it!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090515/67466c28/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: att157f6.jpg
Type: image/jpeg
Size: 6737 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20090515/67466c28/attachment.jpg
More information about the antlr-interest
mailing list