A python implementation of interpreter for lox language, following the structure shown on the book Crafting Interpreters.
- Scanning
- Representing Code
- Evaluating Expressions
- Statements and State
- Control Flow
- Functions
- Resolving and Binding
- Classes
- Inheritance
To run a example
$ git clone https://github.com/peterhttps/pylox
$ cd pylox
$ python3 src/main.py src/examples/testsPrint.lox
To run REPL
$ python3 src/main.py
Note: on REPL we dont have shared environment for multiples commands