[antlr-interest] Exceptions on errors, thread safety
Ric Klaren
klaren at cs.utwente.nl
Thu Mar 18 09:19:18 PST 2004
On Thu, Mar 18, 2004 at 04:03:23PM +0100, Hrvoje Nezic wrote:
> 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.
Could also be the defaultErrorHandler grammar option.... Check the docs for
details.
> Is this by design, and can it be changed somehow?
> Is it possible to achieve that error messages are not written on the console?
Check for reportError and friends. You need to override those to customize
error messages/handling.
> My second question is about thread safety: are ANTLT-generated parsers
> (and especially the C# version) thread-safe?
C++ ones are not.
Cheers,
Ric
--
-----+++++*****************************************************+++++++++-------
---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893722 ----
-----+++++*****************************************************+++++++++-------
Human beings, who are almost unique in having the ability to learn
from the experience of others, are also remarkable for their apparent
disinclination to do so. --- Douglas Adams, Last Chance to See
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list