Skip to content

Keir Lang: Because 9000 programming languages just weren't enough.

Notifications You must be signed in to change notification settings

keirsalterego/rustykeir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

26 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Keir Lang

  • Rust Build Status
  • Sarcasm Level
  • Emotional Damage Compiler Mood
  • Math Precision Error Messages
  • Parentheses Support
  • Unary Operators Code Roasts

🎭 The Programming Language That Roasts You Back

Keir Lang is not your average programming language. It's here to challenge your code and your ego simultaneously. Are you ready for a language that's as sassy as it is functional?

πŸ”₯ Features

  • Brutally Honest Error Messages: Why settle for boring errors when you can be insulted by your compiler?
  • Mathematically Sound: Performs calculations with the precision of a caffeinated mathematician.
  • Unary Operators: Because sometimes, one is all you need.
  • Parentheses Support: For when you need to group your thoughts (and your expressions).
  • Lexical Analysis: Tokenizes your input faster than you can type "syntax error".
  • Recursive Descent Parsing: Parses expressions with the grace of a ballet dancer... on a minefield.
  • Floating-Point Arithmetic: Because integers are too mainstream.

πŸ› οΈ Project Structure

keir_lang/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ main.rs
β”‚   β”œβ”€β”€ lexer.rs
β”‚   β”œβ”€β”€ parser.rs
β”‚   β”œβ”€β”€ interpreter.rs
β”‚   β”œβ”€β”€ ast.rs
β”‚   └── error.rs
β”œβ”€β”€ Cargo.toml
└── README.md

πŸ› οΈ Quick Start

  1. Clone the repo
  2. Install Rust (I assume you're smart enough to do it)
  3. Run cargo init in the project directory
  4. Run cargo build --release
  5. Prepare for emotional damage

πŸ§ͺ Test Cases

  • Keir Lang comes with a robust suite of tests to ensure it roasts your code correctly.
  • Run cargo test --release
  • If you're feeling adventurous, try running cargo test --release -- --nocapture too.

Test Results

πŸ“šReferences

For those brave souls who want to dive deeper into the world of compiler design and sarcastic programming languages:

  • Rust - The mothership of our implementation language.
  • Crafting Interpreters by Robert Nystrom
  • The Rust Programming Language by Steve Klabnik and Carol Nichols
  • CreateLang - If you can’t explain something in simple terms, you don’t understand it

Remember, visiting these websites & books might increase your programming knowledge, but it won't increase your resistance to Keir Lang's sharp wit!

About

Keir Lang: Because 9000 programming languages just weren't enough.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages