Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Dash - A lightweight scripting programming language in Rust
Dash - A lightweight scripting programming language in Rust
โ Rust ๐ 2025-10-15 ๐ค surdeus ๐๏ธ 2I've been working on a small interpreted language called Dash, written entirely in Rust. It's designed to be simple, expressive, and easy to embed or extend โ a scripting language in the spirit of Python, but powered by Rust. Dash makes it easy to prototype ideas quickly while benefiting from Rustโs performance and safety.
It supports variables, arithmetic, control flow (if
, while
, break
, continue
), functions with parameters and return values, and a basic CLI for running .dash
files.
It uses Pest for parsing, and the interpreter is modular and documented. Scripts can be run from the command line or embedded as part of a Rust project.
if
, while
, break
, continue
parser.rs
, eval.rs
, ast.rs
)Available on crates.io:
dash-lang
GitHub: https://github.com/Pjdur/dash-lang
fn add(a, b) {
return a + b
}
let result = add(3, 4)
print(result)
len
, input
)Feedback, suggestions, and contributions are welcome. If you're interested in interpreters, scripting languages, or Rust tooling, feel free to take a look.
1 post - 1 participant
๐ท๏ธ Rust_feed