Graviton Programming language

crates.io license build issues repo size code size

Build requirements

How to build

  1. Run cargo build

What is Graviton?

Graviton is a fast programming language that is minimal and simplistic with a simple and easy to read compiler. Everything is an expression unless a semicolon is used ; then it becomes a statement which gives a clear distinction between expressions and statements.
Graviton is still under heavy development so it is bound to have breaking changes

Examples

Iterative fibonacci example ```rust let output = if (let fibnumber = { let n = readnum();

    let mut prevprevn = 0;
    let mut prevn = 0;
    let mut curn = 1;

    let mut i = 2;

    while i <= n {

        prevprevn = prevn;

        prevn = curn;

        curn = prevprevn + prevn;

        i = i + 1;

    };

    return curn;
}) != 377 {
    fib_number
} else {
    -fib_number
};

println(output); ```

How can follow the progress?