Skip to content

Lox implementation in C#. I was too excited it was my first interpreter got done.

License

Notifications You must be signed in to change notification settings

KHN190/lox-sharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this for?

My personal goal is to implement a Lox interpreter in C# and later a VM in C++ (I may also want to do it in Rust...), following the fantastic book Crafting Interpreters. I never managed to finish a compiler book, but Bob's book is the best!

How do I Run?

It is an interpreter,

# this will compile and run it
dotnet run
# or run a script
dotnet run ./scripts/hello.lox

Devlog

  • 2019.12.25 Scanner.
  • 2020.4.12 Expressions.
  • 2020.4.16 Control flows.
  • 2020.5.14 Functions.
  • 2020.5.16 Anonymous functions & Can assign var using statements.

Want to do

  • re-assign variable to statements.
  • exception handling.
  • more native functions.

License

I know MIT is good so I use it.

About

Lox implementation in C#. I was too excited it was my first interpreter got done.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages