Experimental statically-typed compiled programming language made with LLVM and Rust. https://ed-lang.org/
Go to file
2024-02-04 17:27:06 +01:00
.github initial 2023-03-25 16:21:26 +01:00
.vscode progress 2024-01-15 07:44:11 +01:00
bin/edlang new start 2024-01-14 09:36:46 +01:00
lib prog 2024-02-04 17:27:06 +01:00
programs prog 2024-02-04 17:27:06 +01:00
.clangd ok 2024-01-20 16:44:34 +01:00
.gitignore prog 2024-01-15 11:42:24 +01:00
build.rs initial 2023-03-25 16:21:26 +01:00
Cargo.lock compile 2024-02-03 20:14:29 +01:00
Cargo.toml a 2024-01-27 08:55:54 -03:00
LICENSE initial 2023-03-25 16:21:26 +01:00
README.md if else type analysis 2023-06-03 12:43:12 +02:00

edlang

A toy language I'm making to learn LLVM and compilers.

Syntax is subject to change any time right now. It has a rusty style for now.

struct Hello {
    x: i32,
    y: i32,
}

fn test(x: Hello) {
    return;
}

fn works(x: i64) -> i64 {
    let z = 0;
    if 2 == x {
        z = x * 2;
    } else {
        z = x * 3;
    }
    return z;
}

fn main() -> i64 {
    let y: i64 = 2;
    let z = y;
    return works(z);
}