This fix solves this by using the newer bison options for grammar rule return types (%define api.value.type) instead of using the rather low-level #define YYSTYPE.
Without the fix, all examples did crash with a Segmentation Fault error.
With the fix in place the following examples work again:
[x] C
parsing a bison output file succeeds & the returned AST seems to be correct.
[x] calc
prompt returns correct values. however, the QUIT command does not exit the code. (I will create an issue for that).
[ ] calc1
The promt works again, however the commands are not recognized by the parser.
[x] java
parsing the example file succeeds & the returned AST seems to be correct.
Most examples did not work properly.
This fix solves this by using the newer bison options for grammar rule return types (
%define api.value.type
) instead of using the rather low-level#define YYSTYPE
.Without the fix, all examples did crash with a Segmentation Fault error.
With the fix in place the following examples work again:
C
parsing a bison output file succeeds & the returned AST seems to be correct.calc
prompt returns correct values. however, theQUIT
command does not exit the code. (I will create an issue for that).calc1
The promt works again, however the commands are not recognized by the parser.java
parsing the example file succeeds & the returned AST seems to be correct.json
still returns a segmentation faulttemplate
(adapted its code as well)