bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: page fault when YYFAIL explicitly called


From: Akim Demaille
Subject: Re: page fault when YYFAIL explicitly called
Date: Tue, 12 Nov 2013 10:01:10 +0100

Hi Stanislav,

Please keep the list in CC, for the records.

Le 8 nov. 2013 à 20:04, Stanislav Lang <address@hidden> a écrit :

> Thanks for the answer... 
> i know that it is recommended to use YYERROR, because it is more effective 
> and safe. But YYFAIL prints informations about that, which token appeared and 
> which token was expected.

How about calling yyerror yourself?

> When YYFAIL will be not more supported, it is not so big problem, I will make 
> some extension for yyerror function, to be able to print informations about 
> tokens. Or will be this functionality made for some next version of Bison by 
> Bison team?

Actually YYFAIL is already removed in Bison 3.0.  Could you
describe what feature you'd like to see?  Often when one wants
to raise a syntax error, one can forge better error messages
that the default ones.  That's why, imho, YYFAIL was not so
much used.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]