OMG! CURSED is like, THE MOST iconic programming language that's giving major Go grammar vibes but with Gen Z slang for the keywords?! π It's literally a self-compiling compiler written in Rust and I'm obsessed! π
CURSED is lowkey based on Go's practical design but like, replaces all those boring programming keywords with Gen Z slang that slaps so hard! It's such a vibe while still being fully functional, no cap! π
Example CURSED code (it ATE and left no crumbs):
vibe main
yeet "vibez"
slay main() {
vibez.spill("Hello, World!") fr fr This is a comment
sus name tea = "bestie"
vibez.spillf("Hey %s, what's good?", name)
lowkey 1 < 2 {
vibez.spill("This is based!")
} highkey {
vibez.spill("This is sus!")
}
}
CURSED is literally built different with this bootstrapping compiler approach:
- Stage 0: Bootstrap environment setup using Rust (so basic but necessary) π
- Stage 1: Minimal bootstrap compiler in Rust (starting to serve) π
- Stage 2: Full compiler written in CURSED (the main character energy) β
- Stage 3: Self-compiled full compiler (iconic behavior) πββοΈ
/src
: Compiler source code (core behavior, pretty much carrying) π/specs
: Language specifications and docs (the rulebook, very that) π/examples
: Example CURSED programs (slay examples) β¨/tests
: Test suite for the compiler (we don't flop, we test) β
- Rust toolchain (1.54.0 or later) βοΈ
- Cargo π¦
make build
make test
make run ARGS="path/to/your/file.csd"
The complete language specifications are available in the /specs
directory (we ate with these specs):
- Overview ποΈ
- Lexical Structure π€
- Types π·οΈ
- Grammar π
- Compiler Stages πͺ
- Standard Library π
Contributions are welcome, bestie! Your pull requests can absolutely slay! Fork and go off! π
This project is licensed under the MIT License - see the LICENSE file for the deets. It's giving open source! π€©