Re: [PATCH/RFC] cobol: capture source ranges for tokens, rather than just points

2025-03-11 Thread David Malcolm
On Tue, 2025-03-11 at 11:47 -0400, David Malcolm wrote: > This patch changes the output on the simple test I tried from: > > $ ./gcobol -B. hello.cob -S > hello.cob:2:8: error: syntax error, unexpected NAME, expecting > FUNCTION or PROGRAM-ID >     2 |    porgram-id. hello. >   |    ^

[PATCH/RFC] cobol: capture source ranges for tokens, rather than just points

2025-03-11 Thread David Malcolm
This patch changes the output on the simple test I tried from: $ ./gcobol -B. hello.cob -S hello.cob:2:8: error: syntax error, unexpected NAME, expecting FUNCTION or PROGRAM-ID 2 |porgram-id. hello. |^ cobol1: error: failed compiling hello.cob to: $ ./gcobol -B. hello.