bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFC: propagate the indentation of the actions


From: Paul Eggert
Subject: Re: RFC: propagate the indentation of the actions
Date: Fri, 14 Jun 2019 10:59:21 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0

On 6/12/19 10:48 PM, Akim Demaille wrote:
I do not see how I could help the compiler produce accurate diagnostics: 
there's no #column (or better, _Pragma) that I know of, that we could use to 
insert accurate location information within the line.

If the generated token's column is too small, can't you output white space to make it large enough; and if it's too large, can't you output a newline, the same "#line" directive as before, and you're back to column 1 so you can now output white space to make the column large enough?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]