Crates.io | badlang |
lib.rs | badlang |
version | 0.4.0 |
source | src |
created_at | 2023-09-28 20:34:59.823418 |
updated_at | 2024-05-08 05:36:08.637764 |
description | Next generation stack-based programming language |
homepage | |
repository | https://github.com/gianzellweger/badlang |
max_upload_size | |
id | 986615 |
size | 1,739,988 |
This language isn't just the next trend - it's the future. You've heard of "Rewrite it in Rust". Soon you will hear "Rewrite it in BadLang™" (The ™ is pronounced).
This language features the newest paradigm: Stack-based programming. You've heard of imperative, you've heard of functional, but have you heard of stack-based? It was established in 1970 by the Forth language, so probably not.
cargo install badlang
Alternatively, if you have cargo-binstall
installed you can instead use:
cargo binstall badlang
Since Windows refuses to correctly work if downloaded as provided above, you have to build from source:
git clone https://github.com/gianzellweger/badlang/
cd badlang
cargo run
BadLang™ is (officially) supported on MacOS, GNU+Linux and Windows (somewhat)
This programming language is stack based:
69 drop
This revolutionary blazingly fast example shows the grace of stack-based programming.
See this file.
Addition is where this programming language really shines! We can add two, even three numbers! Bet your C can't do that!
34 35 + print
Or with three numbers:
20 23 26 + + print
You can start a comment using comment
and stop it using no_comment
.
If you want to contribute, you can either do so financially or read the Contributing Guidelines
The name "BadLang™" actually stands for "Badass Language", because that's what it is.