Skip to content

C# implementation of Lox for Crafting Interpreters.

Notifications You must be signed in to change notification settings

chrislewisdev/cslox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CsLox

This project is a C# implementation of the Lox scripting language as described in Robert Nystrom's book Crafting Interpreters. It is an excellent guide to creating an interpeter and you should definitely check it out!

Building

This is a .NET 6 project and can be built using dotnet build. Some code is auto-generated using a Python script; thus the AST definitions can be updated if required by running python codegen.py.

Usage

An interactive command-line environment can be started by running dotnet run, alternatively a script file (such as the included examples) can be executed e.g. dotnet run Examples/loops.lox.

About

C# implementation of Lox for Crafting Interpreters.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published