Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1.02 KB

README.md

File metadata and controls

42 lines (34 loc) · 1.02 KB

Currently only supports two types: i32, and bool.

Example source:

func println(a: i32) {}

func printlnBool(a: bool) {}

func main() -> i32 {
    let a: i32 = 1;
    let b: i32 = 2;
    let c: i32 = a + b;
    println(c);
    printlnBool(a+b == c);
    printlnBool(true);
    printlnBool(false);
    return 5;
}

func ifExpression() -> i32 {
    return if (1 == 3) {
        1;
    } else if (1 == 2) {
        2;
    } else {
        3;
    };
}

Features

  • kebab-case identifiers
  • Question mark suffixes on identifiers, like empty?, or more-chars?

Useful resources: