Thanks to visit codestin.com
Credit goes to github.com

Skip to content

clrudolphi/Lox.NET

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%