[antlr-interest] Exceptions on errors, thread safety
Rodrigo B. de Oliveira
rbo at acm.org
Thu Mar 18 09:06:05 PST 2004
Hi,
override reportError(antlr.RecognitionException) in your parser classe.
Best regards,
Rodrigo
----- Original Message -----
From: Hrvoje Nezic
To: antlr-interest at yahoogroups.com
Sent: Thursday, March 18, 2004 12:03 PM
Subject: [antlr-interest] Exceptions on errors, thread safety
Hi,
I haven't used ANTLR for some time, now I installed 2.7.3rc2.
I am using the C# version.
I would like to be able to get exceptions if input text is not correct.
However, it seems this is not the case. Exceptions are not thrown.
Instead, error messages are written on the console.
Is this by design, and can it be changed somehow?
Is it possible to achieve that error messages are not written on the console?
My second question is about thread safety: are ANTLT-generated parsers
(and especially the C# version) thread-safe?
Thanks!
Best regards,
Hrvoje Nezic
------------------------------------------------------------------------------
Yahoo! Groups Links
a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
b.. To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20040318/3a67c98c/attachment.html
More information about the antlr-interest
mailing list