[antlr-interest] Couldn't disable RecognitionException

Ha Luong haluongvn at gmail.com
Sun Aug 16 09:34:38 PDT 2009


Dear all,

I'd like to catch the RecognitionException object and exit the Recognizer
upon First Error. I tried to use Bail.g in antlr code examples, and disable
"throw e" in it. The error doesn't print to Output of ANTLRWorks v1.2.3 but
print to console command (cygwin). I attached Bail.g, TestBail.java and
input files. Could you please help me?

Thank you very much,
Ha Luong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090816/e964bcb3/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bail.zip
Type: application/zip
Size: 5739 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20090816/e964bcb3/attachment.zip 


More information about the antlr-interest mailing list