anthama
Version:
AnthamaLang ā The Kannada Meme Programming Language
175 lines (131 loc) ⢠3.34 kB
Markdown
# š 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! š"**