UNPKG

anthama

Version:

AnthamaLang — The Kannada Meme Programming Language

175 lines (131 loc) • 3.34 kB
# šŸŽ­ AnthamaLang — The Kannada Meme Programming Language **"Guru, idu serious alla... idu meme programming language!"** Anthama is a fun, meme-driven programming language that uses Kannada expressions and cultural references. It's designed purely for entertainment and learning, with syntax inspired by exaggerated Kannada soap operas, trolls, and viral content. ## šŸš€ Installation ```bash # Clone the repository git clone <repository-url> cd Anthama # Install dependencies npm install # Install globally (optional) npm install -g . ``` ## šŸ“ Usage ```bash # Run a .maga file anthama examples/drama.maga # Or use node directly node src/cli.js examples/drama.maga ``` ## šŸŽÆ Language Features ### Program Structure ```anthama namaskara guru // Your code here mugitu guru ``` ### Variables ```anthama guru idu name = "Kannada" guru idu age = 25 guru idu isCool = sari guru idu empty = kaali ``` ### Print Statements ```anthama helu guru "Hello World!" helu guru variableName ``` ### Conditions ```anthama idre nemdi agi irbaku (age > 18): helu guru "You are an adult!" illa andre: helu guru "You are still young!" ``` ### Loops ```anthama guru idu i = 0 suttu guru (i < 5): helu guru i guru idu i = i + 1 hogu guru ``` ### Comments ```anthama // This is a comment in Anthama // Anthama idu serious alla ``` ## šŸŽŖ Data Types - **Strings**: `"Hello World"` - **Numbers**: `42`, `3.14` - **Booleans**: `sari` (true), `thappu` (false) - **Null**: `kaali` ## šŸ”§ Operators ### Comparison - `==` (equal) - `!=` (not equal) - `>` (greater than) - `<` (less than) - `>=` (greater than or equal) - `<=` (less than or equal) ### Arithmetic - `+` (addition) - `-` (subtraction) - `*` (multiplication) - `/` (division) ## šŸ“ Example Files Check out the `examples/` directory for sample programs: - `drama.maga` - Basic if-else example - `loop.maga` - Loop demonstration - `calculator.maga` - Arithmetic operations - `booleans.maga` - Boolean and null examples ## šŸŽ­ Error Messages Anthama features meme-style error messages: ``` Yak Anna Ooooooo 😭, Line 4 alli thappu ide! Guru, Line 4 alli problem ide! Check maadi! Ayyo! Line 4 alli error aaytu! Bombat illa guru! Line 4 alli thappu ide! ``` ## šŸŽŖ Running Examples ```bash # Basic drama example anthama examples/drama.maga # Loop example anthama examples/loop.maga # Calculator example anthama examples/calculator.maga # Boolean examples anthama examples/booleans.maga ``` ## šŸ› ļø Development ```bash # Install dependencies npm install # Run tests npm test # Start development npm start ``` ## šŸŽÆ Project Structure ``` Anthama/ ā”œā”€ā”€ src/ │ ā”œā”€ā”€ cli.js # Command line interface │ └── interpreter.js # Main interpreter logic ā”œā”€ā”€ examples/ │ ā”œā”€ā”€ drama.maga # Basic example │ ā”œā”€ā”€ loop.maga # Loop example │ ā”œā”€ā”€ calculator.maga # Calculator example │ └── booleans.maga # Boolean example ā”œā”€ā”€ package.json └── README.md ``` ## šŸŽ­ Contributing Feel free to contribute to this meme programming language! Add more features, improve error messages, or create more examples. ## šŸ“œ License MIT License - Feel free to use this for fun and learning! --- **"Mugitu guru! Anthama programming language ready aaytu! šŸŽ‰"**