aspl

Crates.ioaspl
lib.rsaspl
version0.3.0
sourcesrc
created_at2024-10-19 10:49:26.011404
updated_at2024-11-05 11:18:17.981992
descriptionA Simple Programming Language.
homepage
repositoryhttps://github.com/qxb3/aspl
max_upload_size
id1415254
size51,812
(qxb3)

documentation

README

aspl - A Simple Programming Language

aspl is a simple, intuitive programming language inspired by the Bash shell and Unix command-like systems.

Language

Basic

set msg "The apple count is: "
set count 10
logl msg count # The apple count is: 10

Conditional

set a 10
set b 20

check a < b {
  logl "a is less than b"
}

While loop

while true {
  logl "loop"
}

Function

fn get {
  ret "foobar"
}

fn print arg1 {
  logl arg
}

set msg @get
@print msg

Sourcing

# utils.aspl
fn util_foo {
  logl "foo bar"
}

# main.aspl
@source "./utils.aspl"

@util_foo

Using

Installation

cargo install aspl

Running

aspl <input.aspl>

Contribution

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

LICENSE

LICENSE

Commit count: 81

cargo fmt