graviton 0.4.1

Tachyon 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.
Documentation

Graviton Programming language

crates.io license build issues repo size code size

Build requirements

  • Rust nightly with cargo

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

println("Iterative Fibonacci example");

print("Enter a number: ");
let n = read_num();

let output = if (let fib_number = {

        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 {
        println("Input was 14 so result will be negated for demonstration");
        -fib_number
    };

println("Fibonacci of " + str(n) + " is " + str(output));

How can follow the progress?

  • Follow it on Discord! There are also some other cool projects on this Discord like Wolf, FlukeWM, ModEngine, Lir Language, and more https://discord.gg/RmgjcES