Skip to content
/ php-lox Public

PHP implementation of the Lox language first interpreter from the amazing book Crafting Interpreters by Robert Nystrom.

Notifications You must be signed in to change notification settings

jsadaa/php-lox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPLOX

This is a PHP implementation of the Lox language first interpreter from the amazing book Crafting Interpreters by Robert Nystrom.

Notes

This is actually still a work in progress, but I'm trying to keep it as close to the original as possible (with some PHP specific changes and some personal tests).

While it could obviously not make sense to implement an interpreter for an interpreted language with another interpreted language, I'm doing this for fun and learning purposes !

Installation

You can install the project with the following command:

composer install

Usage

You can run the interpreter with the following command:

php lox.php

You can also run a Lox script with:

php lox.php path/to/your/script.lox

About

PHP implementation of the Lox language first interpreter from the amazing book Crafting Interpreters by Robert Nystrom.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages