pylox interpreter
My first implementation of lox from https://craftinginterpreters.com, using python.
Running tests:
./run_tests.sh
Run the pylox REPL:
python pylox.py
todo
- up to here: https://craftinginterpreters.com/control-flow.html#logical-operators
- repl: parameter for debug verbosity on/off
- repl: don't throw on undefined var
- parser error recovery: https://craftinginterpreters.com/statements-and-state.html#parsing-variables
- try catch in declaration. throw for now?
- bug: 1 == 1 == 1 is false due to (I think):
- (1 == 1) == 1
- ( True ) == 1
- = False
fun stuff for later
- python to javascript
- try first, then look for existing tools
- python to bash
- python to webassembly
- c# to webassembly
- what does blazor do?