Closed Feoramund closed 3 months ago
How coincidental. @gingerBill mentioned wanting to fix that on the Discord last night, to which you're most welcome, of course.
but I haven't a good way to visualize and verify that the AST is in a precisely correct construction, just as an advisory.
I'll leave this one for Bill. I'm not familiar enough with the AST to be sure either.
All tests are passing now. At the very least, it's parsing the demo.
I have improved this in both the C++ side and Odin side in 1945218f6
I had a look at the AST with
ast.inspect
using print statements to make sure the loop is parsed as areverse
loop on the right line and column, tried something likelabel: #force_inline
to make sure it still erred out, and I think it's working properly - as in no unexpected errors, but I haven't a good way to visualize and verify that the AST is in a precisely correct construction, just as an advisory.Fixes #3715
EDIT: Well, that's unfortunate. I didn't run tests locally. I suppose it was too good to be true to be so easy to fix.