[antlr-interest] Segfault in C target on EOF error reporting

Jim Idle jimi at temporal-wave.com
Thu Feb 3 08:01:54 PST 2011


I have already fixed this I think. It is because the EOF token is trying
to be duplicated or otherwise modified. However, the runtime error message
routine is just an example - you are expected to implement your own that
does something sensible ;-)

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Marco Trudel
> Sent: Thursday, February 03, 2011 5:58 AM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] Segfault in C target on EOF error reporting
>
> Dear Jim
>
> If there's an EOF in the grammar, the C target crashes on input with
> certain syntax errors. I wrote this quick fix. I hope it at least helps
> you pinpointing the problem.
>
> Any thoughts/comments?
>
>
> Thanks
> Marco


More information about the antlr-interest mailing list