help-bison
[Top][All Lists]
Advanced

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

Re: yyerror strlen question


From: Joel E. Denny
Subject: Re: yyerror strlen question
Date: Sun, 17 Jan 2010 18:33:37 -0500 (EST)
User-agent: Alpine 1.00 (DEB 882 2007-12-20)

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.




reply via email to

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