Re: Syntax error messages

2021-10-01 Thread Christian Schoenebeck
On Freitag, 1. Oktober 2021 09:37:52 CEST Hans Åberg wrote: > > On 28 Sep 2021, at 14:10, Christian Schoenebeck > > wrote:> > > On Montag, 27. September 2021 22:07:33 CEST Hans Åberg wrote: > In order to generate better syntax error messages writing out the input > line with the error a

Re: Getting a Counter

2021-10-01 Thread Hans Åberg
> On 1 Oct 2021, at 07:16, Guenther Sohler wrote: > > Hi, > In my parser i don't want flex to return comments in my code as flex tokens. > Instead i want to store them in a different list together with their > position. > > Lateron i am using their position to included them in the code again.

Re: Syntax error messages

2021-10-01 Thread Hans Åberg
> On 28 Sep 2021, at 14:10, Christian Schoenebeck > wrote: > > On Montag, 27. September 2021 22:07:33 CEST Hans Åberg wrote: 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