Skip to content

Latest commit

 

History

History
65 lines (44 loc) · 917 Bytes

README.md

File metadata and controls

65 lines (44 loc) · 917 Bytes

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();
    }
}