Closed matz closed 3 months ago
Upon further investigation, it appears that the problem is that lrama has %locations
directive set by default (default off in Bison).
As a workaround, we have added @1
in the rules. But we still prefer no YYLTYPE
passed to yyerror
and yylex
.
Thank you!
When bison file specifies
%define api.pure
, Bison callsyylex
asyylex (&yylval)
but lrama callsyylex (&yylval, &yylloc)
, which is Bison's behavior for%define api.pure full
. I will update the bison input, but it is a compatibility issue anyway.