Re: Line zero/column zero

Simon Richter <[email protected]> Thu, 11 Sep 2025 19:51:37 +0900
Newsgroups gmane.comp.parsers.bison.general
Message-ID <[email protected]>
Hi,

On 9/11/25 4:57 PM, Fr wrote:

> Lines and columns are usually counted from 1, even by code editors (Vim, Nano, Kate to name a few). So i assume that's the reason.

Exactly, that's why I'm confused. With the less-or-equal test before 
printing the line/column number, if there is a zero it will get printed, 
and only negative numbers are omitted.

    Simon