I'm planning to work through the chapters of the book and write some code.
To start the interpreter:
python py-loxi/loxi.py
- derivatives (strings from the grammar)
- productions (rules).
If we have productions, what code generates derivatives?
See also [py-loxi/tool/generate-ast.py]
Since python has pattern matching, should I implement using that instead of visitor pattern?
Had to move around code for imports not to be circular.
Evaluation
N. skipped detecting runtime errors TODO handle runtime error TODO add test cases for interpreter
TODO [x] assignment [] scopes