Re: improving error message

2018-11-10 Thread Hans Åberg
> On 10 Nov 2018, at 12:50, Akim Demaille wrote: > >> Le 10 nov. 2018 à 10:38, Hans Åberg a écrit : >> >>> Also, see if using %param does not already >>> give you what you need to pass information from the scanner to the >>> parser’s yyerror. >> >> How would that get into the yyerror function

Re: improving error message (was: bison for nlp)

2018-11-10 Thread Akim Demaille
> Le 10 nov. 2018 à 10:38, Hans Åberg a écrit : > >> Also, see if using %param does not already >> give you what you need to pass information from the scanner to the >> parser’s yyerror. > > How would that get into the yyerror function? In C, arguments of %parse-param are passed to yyerror.

Re: improving error message (was: bison for nlp)

2018-11-10 Thread Hans Åberg
> On 10 Nov 2018, at 09:02, Akim Demaille wrote: > > Hi Hans, Hello Akim, >>>>> Yes. Some day we will work on improving error message generation, >>>>> there is much demand. >>>> >>>> One thing I’d like to have is if there is

improving error message (was: bison for nlp)

2018-11-10 Thread Akim Demaille
gt; >>>>> By the way, I’ll still get the error message as a string I guess, right? >>>> >>>> Yes. Some day we will work on improving error message generation, >>>> there is much demand. >>> >>> One thing I’d like to have is i