Re: Line zero/column zero

Fr <[email protected]> Thu, 11 Sep 2025 09:57:47 +0200
Newsgroups gmane.comp.parsers.bison.general
Message-ID <[email protected]>
Lines and columns are usually counted from 1, even by code editors (Vim, Na=
no, Kate to name a few)=2E So i assume that's the reason=2E
 - Fcalva

Le 11 septembre 2025 07:30:00 GMT+02:00, Simon Richter <Simon=2ERichter@ho=
gyros=2Ede> a =C3=A9crit=C2=A0:
>Hi,
>
>looking at the yy_location_print_ function, I see
>
>    if (0 <=3D yylocp->first_line)
>
>and likewise for the other fields=2E Is that only a sign check to avoid g=
enerating a minus sign in the output, or should that have been a less-than?
>
>   Simon
>