help-bison
[Top][All Lists]
Advanced

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

Re: Print expected tokens in yyerror function.


From: Hans Aberg
Subject: Re: Print expected tokens in yyerror function.
Date: Sat, 29 Mar 2008 15:18:59 +0100

On 29 Mar 2008, at 14:31, Claudio Saavedra wrote:
The feature most asked for is finding the correct set of lookahead
token, to be used in an interactive parser. The error recovery thing
seems to be rather out of vogue these days, in view of very
interactive computer programming - it is fairly easy to fix the
problems and recompile. It is still important to have good error
messages, of course, identifying the point where the error occurred.#

Pretty true. One advantage of having an accurate error repairing
technique like BF, is that you get really good quality error diagnosis,
and also most of the times you can even diagnosis correctly the
corrections for multiple errors that occur in close proximity.

It might be the case, but in the list of preferences, I would put first correct token lookahead and error diagnosis. It may be the case that the latter can be done better without having to worry about error recovery.

I'm on the task of putting online my git's clone of bison's repository,
where I implemented BF.

If one can try it, that would be the best way to evaluate it.

  Hans Aberg







reply via email to

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