Hi everyone!
I was a bit bored and decided to write a lightweight, hilarious interpreter from scratch using pure Python.
Meet CatScript — the ultimate esoteric language inspired entirely by feline behavior.
Some core mechanics:
• It operates on a single accumulator register called the "belly" (where it stores the current value).
• No human words like if, while, or print. Control flow is handled via commands like EyesWide (conditional branch) and TailUp/TailDown (loops).
• The main technical constraint: Every single instruction introduces a mandatory 5ms delay using time.sleep(0.005) because cats do not care about your high-tech CPU or your deadlines.
Quick Syntax Examples:
• Meow — (+1 to the belly)
• Tygydyk — midnight zoomies (multiply belly value by 2)
• Purr — happy vibration (prints the belly value as an ASCII character)
• Bite — stops the program execution gracefully
I've already managed to write a program that prints "Hello" using only cat syntax.
The project is fully open-source. You can check out the lexer logic, read the full command reference, or run the "Hello" example yourself! repo