Most of the diff is due to changes to the shape of the AST. Most attention should be paid to those AST changes themselves, and then the drastically simplified parsing (:smiley:). The tests should have caught any potential regressions... in theory!
Looking at the output there's a lot of space for optimisation, but I'm avoiding anything like that for now in pursuit of a simple compiler, as with how we solved #111.
Closes #108. #136 will follow in another PR.
Given:
Previously:
Now:
Most of the diff is due to changes to the shape of the AST. Most attention should be paid to those AST changes themselves, and then the drastically simplified parsing (:smiley:). The tests should have caught any potential regressions... in theory!
Looking at the output there's a lot of space for optimisation, but I'm avoiding anything like that for now in pursuit of a simple compiler, as with how we solved #111.