[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Modification to glr.c to report parse errors properly
From: |
Akim Demaille |
Subject: |
Re: Modification to glr.c to report parse errors properly |
Date: |
Fri, 15 Nov 2002 10:08:25 +0100 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) |
Paul> The input.at test shows that a GLR parser running on a normal LALR
Paul> grammar and given an erroneous input that causes an unrecoverable
Paul> parse error can fail to report the error. This was because the
Paul> yyerrflag indicator on the parsing stack was only being set on failure
Paul> only under certain conditions, whereas it should always be set. I
Paul> have checked in the patch below.
Thanks Paul!
I don't know if you saw my other notes, but I also wonder why there is
a sole yyerror call which is not triggered by yyreportParseError. Is
it intended?