CSLOX is an implementation of jlox
from Crafting
Interpreters.
Why not? I know Java, and I took this opportunity to refresh my knowledge on C#. The last time I touched c# was in 2010.
This project uses .NET Core 5.0
. I guess it's .NET 5.0
plain and simple
nowadays so it should run on any OS supporting it. I am using it on Windows.
To run the repl:
dotnet run -p cslox
To run a script:
dotnet run -p cslox -- lox_scripts/example.lox
Usage:
cslox | runs the repl
cslox [FILE] | runs a file