On Mon, 18 Jan 2010, tys lefering wrote:

> > As I posted earlier today, we have plans to provide an alternative to
> > yyerror.  One feature we've discussed is the ability to iterate the
> > expected tokens and construct the error message yourself.  That would
> > allow you to place whatever limit you like on the length.
> that would be even better, for now it is nice
> to have a better yyerror message then just 'parse error'

You may already be aware, but the list of expected tokens has always been 
badly broken for some cases because of LALR and default reductions.  It 
might contain syntactically unacceptable tokens, and it might be missing 
acceptable ones.  I've implemented a solution, but I'm slow to get it into 
git.  I hope to release it as an experimental feature of Bison 2.5... some 
day.

> maybe the bison manual could mention the verbose
> yyerror string has no length limit.

Ok, I'll keep that in mind for when I document my fix for verbose 
messages.


_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to