EDL is a simple, domain-oriented programming language designed to enable quick scripting and automation with a clear and modern syntax.
EDL is a simple and lightweight language designed for quickly writing scripts and automations. Its interpreter is written in Rust and allows running scripts via command line or in REPL mode.
-
Prerequisites: Rust and Cargo installed on your machine.
-
Clone the repository:
git clone https://github.com/Sky-Genesis-Enterprise/edl.git cd edl
-
Build the CLI binary:
cargo build --release -p cli
-
Install the binary:
mkdir -p ~/.local/bin cp target/release/cli ~/.local/bin/edl chmod +x ~/.local/bin/edl
-
Add
~/.local/bin
to your PATH if not already done:echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc source ~/.bashrc
-
Verify the installation:
edl --help
Declared with let
:
let x = 42;
let name = "EDL";
let is_ready = true;
Defined with fn
:
fn greet(name) {
return "Hello, " + name + "!";
}
let message = greet("World");
if
/else
condition:
if x > 10 {
print("x is greater than 10");
} else {
print("x is 10 or less");
}
while
loop:
let i = 0;
while i < 5 {
print(i);
i = i + 1;
}
for
loop within
(if supported):
for item in [1, 2, 3, 4, 5] {
print(item);
}
- Numbers:
42
,3.14
- Strings:
"text"
- Booleans:
true
,false
- Lists (example):
[1, 2, 3]
(if supported)
let x = 10;
let y = 20;
let sum = x + y;
if sum > 25 {
print("Sum is large");
} else {
print("Sum is small");
}
-
Run a script file:
edl run my_script.edl
-
Interactive REPL mode:
edl repl
-
Show help:
edl --help
Contributions welcome! To contribute:
- Fork this repository
- Create a feature or bugfix branch
- Open a Pull Request with a clear description
Project licensed under the AGPLv3 License. See the LICENSE file for details.