Skip to content

ghuntley/cursed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✨ CURSED Programming Language 🔥

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! 😍

The Tea on CURSED ☕

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!")
    }
}

Self-Compiling Compiler (so extra!) 💯

CURSED is literally built different with this bootstrapping compiler approach:

  1. Stage 0: Bootstrap environment setup using Rust (so basic but necessary) 🙄
  2. Stage 1: Minimal bootstrap compiler in Rust (starting to serve) 👀
  3. Stage 2: Full compiler written in CURSED (the main character energy) ⭐
  4. Stage 3: Self-compiled full compiler (iconic behavior) 💁‍♀️

Project Structure (we stay organized, periodt!) 📁

  • /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) ✅

Getting Started (no gatekeeping here!) 🚀

Prerequisites (the fit check before coding) 👗

  • Rust toolchain (1.54.0 or later) ⚙️
  • Cargo 📦

Building (so you can build that) 🔨

make build

Running Tests (gotta check the vibes) 🧪

make test

Running the Compiler (it's giving main character energy) 💻

make run ARGS="path/to/your/file.csd"

Language Documentation (real ones read the docs) 📚

The complete language specifications are available in the /specs directory (we ate with these specs):

Contributing (join the CURSED group chat) 👯‍♀️

Contributions are welcome, bestie! Your pull requests can absolutely slay! Fork and go off! 💅

License 📜

This project is licensed under the MIT License - see the LICENSE file for the deets. It's giving open source! 🤩

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published