/rash

Rash-Lang 🦀 - A bash 🐚 alternative with reasonable syntax 📜 written in Rust 🦀

Primary LanguageRust

Rash 🦀 - reasonable again shell

A bash 🐚 alternative with reasonable syntax, written in Rust.

Basic syntax 📜

for i = 0; i < 10; ++i; {
  if i == 7; {
    print("Lucky number!");
  }
}
// Shell command syntax
url = "https://pokey.remington.boo" // Great website 
c"curl ${url}"

Install 🏹

git clone https://github.com/ThatBlokeJosh/rash.git
cd rash
chmod +x setup
./setup

Or you can use the provided rash script like so

rash setup.rash

TODO ✅

  • Add types
  • Add variables
  • Add loops, conditions and basic functions
  • Function definitons, importing
  • LSP???

Benchmark 📈

Language Time
Rash 🚀 4.76s
Bash 🗑️ 2.60s
Python 🐍 1.45s
Rust 🦀 0.35s
JavaScript 🟨 4.87s
TypeScript 🟦 4.57s

Code tested

for i = 0; i < 100; ++i; {
  for j = 0; j < 100; ++j; {
    for k = 0; k < 100; ++k; {
	    print(i * j * k);
    }
  }
}