CURSED is an esoteric programming language that combines Go-like grammar with Generation Z slang for keywords and tokens. It is implemented as a self-compiling compiler written in Rust.
CURSED follows Go's practical design philosophy but replaces traditional programming keywords with contemporary Gen Z slang, creating a unique and entertaining programming experience while maintaining practical usability.
Example CURSED code:
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 implemented following the bootstrapping compiler approach:
- Stage 0: Bootstrap environment setup using Rust
- Stage 1: Minimal bootstrap compiler in Rust
- Stage 2: Full compiler written in CURSED
- Stage 3: Self-compiled full compiler
/src
: Compiler source code/specs
: Language specifications and documentation/examples
: Example CURSED programs/tests
: Test suite for the compiler
- 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:
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.