https://github.com/edg-l/edlang
Experimental statically-typed compiled programming language made with LLVM and Rust.
https://github.com/edg-l/edlang
compiler edlang experimental-language language llvm programming-language rust
Last synced: 7 months ago
JSON representation
Experimental statically-typed compiled programming language made with LLVM and Rust.
- Host: GitHub
- URL: https://github.com/edg-l/edlang
- Owner: edg-l
- License: agpl-3.0
- Created: 2023-03-09T15:01:04.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-08-01T07:04:30.000Z (over 1 year ago)
- Last Synced: 2025-03-29T03:41:30.354Z (10 months ago)
- Topics: compiler, edlang, experimental-language, language, llvm, programming-language, rust
- Language: Rust
- Homepage: https://ed-lang.org
- Size: 101 MB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 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.
```rust
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
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