项目作者: dhitchin

项目描述 :
C# implementation of the Lox interpreter from Crafting Interpreters
高级语言: C#
项目地址: git://github.com/dhitchin/Lox-interpreter.git
创建时间: 2020-01-31T22:45:00Z
项目社区:https://github.com/dhitchin/Lox-interpreter

开源协议:

下载


Lox-interpreter

This repo is for my implementations of the “jlox” interpreter and “clox” compiler from Crafting Interpreters.

C# interpreter

This interpreter is very similar to the “jlox” interpreter outlined for Java in the Crafting Interpreters book. There are some changes to variable names, and some syntax changes to make it more “C#-esque”.

Some changes include:

  • Use of text templates for code generation instead of an external tool.
  • Addition of ‘++’ and ‘—‘ postfix operators

TODO:

  • Ternary operator
  • Additional built-in functions
  • Bugfixes when dealing with variables and closures