Lox interpreter written in PHP
From Bob Nystrom's book crafting interpreters
It doesn't really follow the book because it's funny to rewrite some parts
- Scanning
- Representing Code
- Parsing Expressions
- Evaluating Expressions
- Statements and State
- Control Flow
- Functions
- Resolving and Binding
- Classes
- Inheritance
- Nested multi-line comments
- Scan Token on the fly
- Pratt parser
clone this repository and run
php src/main.php [script]
You can also use
make
to create the phar