[antlr-interest] Error handling using parallel instances of a C-target parser
anteusz at freemail.hu
anteusz at freemail.hu
Mon May 10 11:00:07 PDT 2010
5/10/2010 7:07 PM keltezéssel, Jim Idle írta:
> Use antlr.markmail.org and look for displayRecognitionError. Remember that if you have parallel threads, you will want the error collections to be thread instances, not global members. Therefore you add them as context members @apifuncs etc.
>
> http://antlr.markmail.org/search/?q=apifuncs#
>
> http://antlr.markmail.org/search/?q=displayRecognitionError+C
>
>
> Jim
>
>
Hi,
I tried this method too in C#..
I overrode
displayRecognitionError but I can still see some error message printed by
this code:
if (parser.TokenStream.LT(1) == Token.EOF_TOKEN)
return -1;
Marton
More information about the antlr-interest
mailing list