Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 674 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 674 Bytes

shlox

shlox is a C# implementation of a parser and interpreter for the Lox programming language. This interpreter and the Lox language is based on Bob Nystrom's Book "Crafting Interpreters". This project can be run in REPL mode or against a file by passing it a the first argument.

Running the REPL

dotnet run from the /src folder

Running a file

dotnet run file-name

Other Notes

The /tools folder contains a Python script for generating the expression and statement AST classes. When executed, this script will use the data in the expr-defs.txt and stmnt-defs.txt files to generate the classes.