Re: how to work with Bison locations?

2009-06-03 Thread Kynn Jones
On Wed, Jun 3, 2009 at 1:28 AM, Luca wrote: > Location are created by lexer and "reduced" by the parser, so you have to > create them using the lexer: > > #define YY_USER_ACTION {yylloc.first_line = yylineno; yylloc.first_column = > colnum; colnum=colnum+yyleng; yylloc.last_column=colnum; yylloc.l

Re: how to work with Bison locations?

2009-06-03 Thread Henrik Sorensen
On Tuesday 02 June 2009 22.27:11 Kynn Jones wrote: > Hi. I'm working with Bison (and Flex) for the first time, and it's rough > going. good luck ... we have all been there:-) Not sure I would have started with the locations though. This topic comes up from time to time, so it might be worth sea

Re: how to work with Bison locations?

2009-06-03 Thread Akim Demaille
Le 3 juin 09 à 08:35, Henrik Sorensen a écrit : On Tuesday 02 June 2009 22.27:11 Kynn Jones wrote: Hi. I'm working with Bison (and Flex) for the first time, and it's rough going. good luck ... we have all been there:-) Not sure I would have started with the locations though. This topic