-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cfg-grammar.y: add location reporting to bison debug #138
Conversation
7fe6df7
to
17b1683
Compare
This did not work for me at all. To make it work I had to set the I can see that @bazsi Have you read anything about this? FTR:
|
This might be a bison version issue. I found the stuff while reading the
generated source.
I'll check what I have as bison, but I think that's relatively recent as
dbld uses Debian testing.
…On Tue, Jun 4, 2024, 15:55 Attila Szakacs ***@***.***> wrote:
This did not work for me at all.
To make it work I had to set the YY_LOCATION_PRINT macro instead of
YYLOCATION_PRINT, and had to change the signature as well from main_location_print
(FILE *yyo, YYLTYPE const * const yylocp) to main_location_print (FILE
*yyo, YYLTYPE yylocp).
I can see that YYLOCATION_PRINT is documented, but my generated c code
used YY_LOCATION_PRINT everywhere.
@bazsi <https://github.com/bazsi> Have you read anything about this?
FTR:
$ bison --version
bison (GNU Bison) 3.7.6
Written by Robert Corbett and Richard Stallman.
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
—
Reply to this email directly, view it on GitHub
<#138 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFOK5TNO2HVT2GHNBG6YELZFXBORAVCNFSM6AAAAABIVZKCZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBXGYYDGOJRGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
17b1683
to
67e793d
Compare
@alltilla added bison dependency check as requested IRL. |
67e793d
to
69ed8cc
Compare
I have tested the old bison version, it behaves as expected. |
@bazsi Feel free to merge this if it works for your bison version. |
Signed-off-by: Balazs Scheidler <[email protected]>
69ed8cc
to
6de67fb
Compare
This will add location information to the grammar debug output.