Skip to content
/ gao Public

The Gao programming language

License

Notifications You must be signed in to change notification settings

trinnguyen/gao

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.gao

The Gao programming language

Getting started

Hello world

fn main(): int {   
    return bar(1);
}

fn test(): int {
    let y: bool = false;
    let x: int = 101;
    y = true;
    x = 201;
    foo();
    bar2(1, false);
    return bar(x);
}

fn foo(): bool {
    let x: int = 102;
    let y: bool = false;
    return y;
}

fn bar(a1: int): int {
    return 1;
}

fn bar2(a1: int, a2: bool): bool {
    return false;
}