Skip to content

[External] Include line number in the error messages regarding misuse of placeholder

2 messages · iuke-tier@ey m@iii@g oii uiow@@edu, Duncan Murdoch

#
[Apologies for the late reply. About a month ago our wonderful
Exchange server apparently started to dump messages into Junk Email
again even though I had turned that "feature" off, and I just noticed
a couple of days ago.]

In principle I'd be happy to consider a simple patch to gram.y that
add line numbers. I can't see the benefit of a complicated patch that
makes the grammar even harder to maintain than it is already as being
worth the cost. If you can come up with a simple. well tested patch
please submit via bugzilla.

Best,

luke
On Mon, 21 Mar 2022, Kun Ren wrote:

            

  
    
#
The basic idea for a patch is that the bison/yacc variables &@1, &@2 and 
&@3 give the locations for the three parts of the pattern

    expr PIPE expr

I'll see if I can put together a minimal change that makes these 
available when the error messages are generated.

Duncan Murdoch
On 21/04/2022 12:47 p.m., luke-tierney at uiowa.edu wrote: