Syntax error messages

2021-09-27 Thread Hans Åberg
In order to generate better syntax error messages writing out the input line with the error and a line with a marker underneath, I thought of checking how Bison does it, but I could not find the place in its sources. —Specifically, a suggestion is to tweak YY_INPUT in the lexer to buffer one inp

Re: Syntax error messages

2021-09-27 Thread Akim Demaille
Hi Hans, > Le 27 sept. 2021 à 20:54, Hans Åberg a écrit : > > In order to generate better syntax error messages writing out the input line > with the error and a line with a marker underneath, I thought of checking how > Bison does it, but I could not find the place in its sources. —Specifical

Re: Syntax error messages

2021-09-27 Thread Hans Åberg
> On 27 Sep 2021, at 22:02, Akim Demaille wrote: > > Hi Hans, > >> Le 27 sept. 2021 à 20:54, Hans Åberg a écrit : >> >> In order to generate better syntax error messages writing out the input line >> with the error and a line with a marker underneath, I thought of checking >> how Bison doe