Closed HexDecimal closed 3 months ago
Was tokens.cpp
manually edited or regenerated via build action?
I manually edited it. I'm not sure of the steps to reregenerate it.
Change to debug configuration. Right click on Language files/tokens.lex
look at "Custom Build Tool". Repeat for grammar.acc
. These should be run when "lib_incursion" is built. Sometimes they do, sometimes they don't. Delete the src/tokens.cpp
on disk to make sure it doesn't compile unless you get it working.
I've verified the vector is the correct size.
Could not find "Custom Build Tool" in the solution explorer for Language files/tokens.lex
.
I manually deleted tokens.cpp
and it was recreated by the solution.
These files can be verified by the CI if they're reproducible. tokens.cpp
is, but yygram.*
isn't unless the paths are normalized.
Fixed-size stack replaced by std::vector preventing an overflow. Fixes #27
Also encountered assertion errors related to my PR #21 while testing. I've added a more complete solution. Closes #30
I need to test if the vector size is off-by-one. I'll put down a breakpoint and play until it's triggered.