This project is a Lox interpreter written in Python. It can parse and execute Lox files. This project was made by following the craftinginterpreters book
- Installation
- Usage
- Running Tests
Clone the repository:
git clone https://github.com/henlam1/Lox-Interpreter.git
Run the main file
python main.py <command> <path_to_file>
- <command> : An argument that is tokenize, parse, or evaluate
- <path_to_file> : Path to the Lox file you want to interpret
Example usage
python main.py parse test_files/parsing/arithmetic/mul_div.lox
To run the tests, use the following command
pytest