FaberSanZ / Lox.NET

A Roslyn inspired for the book "Crafting Interpreters"

Home Page:http://www.craftinginterpreters.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lox.NET

A cross-platform compiler/interpreter .NET Standard implementation of the Lox language Roslyn inspired.


License: MIT

The code is licensed under MIT. Feel free to use it for whatever purpose.



Examples

class Console 
{
    Console(str) 
    {
	    this.name = str;
    }

    WriteDebug() 
    {
        print this.name;
    }

    Write(str) 
    {
        print str;
    }
}

class Program
{
    Program()
    {

    }

    Main()
    {
        let cw = Console("Debug Init");

        cw.Write("Hello Word 0");
        cw.Write("Hello Word 1");
        cw.Write("Hello Word 2");
        cw.Write("Hello Word 3");
        cw.WriteDebug();
    }
}

About

A Roslyn inspired for the book "Crafting Interpreters"

http://www.craftinginterpreters.com/

License:MIT License


Languages

Language:C# 100.0%