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

Skip to content

The compiler for Jlang (C with interfaces)

License

jkeresman01/Jlang

Repository files navigation

Jlang Logo

A procedural programming language inspired by C and Go.

Langauge syntax

interface IPrintable
{
    void print();
}

struct Person -> IPrintable 
{
    firstName char*; 
    age int32; 
}

void print() -> Person p
{
    jout("First name: %s", p.firstName); 
    jout("Age: %d", p.age); 
}

int32 main()
{
    var p Person* = (struct Person*) jalloc(sizeof(struct Person));

    if (p == NULL) 
    {
        jout("No can do"); 
    }
    else 
    {
        jout("Incredible");
    }

    jfree(p);
}

Releases

No releases published

Packages

No packages published