Skip to content
/ edlang Public

Experimental statically-typed compiled programming language made with LLVM and Rust.

License

Notifications You must be signed in to change notification settings

edg-l/edlang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Aug 1, 2024
0d39a30 · Aug 1, 2024
Jul 19, 2024
Jan 15, 2024
May 26, 2024
May 26, 2024
Aug 1, 2024
Feb 19, 2024
Feb 17, 2024
Jul 19, 2024
May 7, 2024
Aug 1, 2024
May 5, 2024
Mar 25, 2023
Apr 9, 2024
Mar 25, 2023
Mar 13, 2024
Feb 13, 2024

Repository files navigation

edlang

An experimental statically-typed compiled programming language made with LLVM and Rust.

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

pub fn main() -> i32 {
    let b: i32 = factorial(4);
    return b;
}

pub fn factorial(n: i32) -> i32 {
    if n == 1 {
        return n;
    } else {
        return n * factorial(n - 1);
    }
}

mod hello {
  pub fn world(ptr: *const u8) -> u8 {
    return *ptr;
  }
}

edb: The edlang builder

edb is a tool like cargo but for edlang:

edlang builder

Usage: edlang <COMMAND>

Commands:
  new    Initialize a project
  build  Build a project
  help   Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

Dependencies

  • Rust
  • LLVM 18