Crates.io | aspl |
lib.rs | aspl |
version | 0.4.0 |
source | src |
created_at | 2024-10-19 10:49:26.011404 |
updated_at | 2024-11-11 07:45:48.145717 |
description | A Simple Programming Language. |
homepage | |
repository | https://github.com/qxb3/aspl |
max_upload_size | |
id | 1415254 |
size | 79,251 |
aspl is a simple, intuitive programming language inspired by the Bash shell and Unix command-like systems.
set msg "The apple count is: "
set count 10
logl msg count # The apple count is: 10
set int 64
set str "Hello, World"
set bool true
set arr [1 2 3 4]
set num1 32
set num2 32
set result @math(num1 + num2)
logl result # 64
set a 10
set b 20
check a < b {
logl "a is less than b"
}
while true {
logl "loop"
}
fn get {
ret "foobar"
}
fn print arg1 {
logl arg
}
set msg @get
@print msg
# utils.aspl
fn util_foo {
logl "foo bar"
}
# main.aspl
@source "./utils.aspl"
@util_foo
cargo install aspl
aspl <input.aspl>
Contributions to aspl are welcome! If you have ideas for improvements, new features, or bug fixes, feel free to open an issue or submit a pull request on aspl