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?
- 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.
keir_lang/
βββ src/
β βββ main.rs
β βββ lexer.rs
β βββ parser.rs
β βββ interpreter.rs
β βββ ast.rs
β βββ error.rs
βββ Cargo.toml
βββ README.md
- Clone the repo
- Install Rust (I assume you're smart enough to do it)
- Run
cargo initin the project directory - Run
cargo build --release - Prepare for emotional damage
- 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 -- --nocapturetoo.
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 Interpretersby Robert NystromThe Rust Programming Languageby 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!
