Skip to content

Super simple custom programming language compiler.

Notifications You must be signed in to change notification settings

mkuzmik/nolang-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nolang compiler

About Nolang

Nolang is custom and simple programming language. Code example:

{
    function factorial(a) {
        if (a<2) {
            return a;
        }
        return a*factorial(a-1);
    }

    var input = 4;
    print factorial(input);
}

About Nolang compiler

Nolang compiler compiles Nolang code to Python source code. Example:

  • Input:
{
    function hello() {
        print 'Hello world';
    }

    function countTo(x) {
        var i = 1;

        while (i<x) {
            print i;
            i = i + 1;
        }
    }

    hello();
    countTo(10);
}
  • Output:
def hello():
    print("Hello world")

def countTo(x):
    i=1
    while (i)<(x):
        print(i)
        i=i+1


hello()
countTo(10)

About

Super simple custom programming language compiler.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages