Skip to content

AkshatOP/aklang

Repository files navigation

AKlang

AKlang is a fun, desi-college-themed programming language designed to feel like you're coding straight from a class with your gang. With keywords like class chalu, note kar, proxy mili toh, and agli class, it mixes meme culture and Hindi College slang with basic programming constructs to make coding more expressive, nostalgic, and relatable.


Official Website - https://aklang.vercel.app/

✨ Features

  • Dramatic Hindi syntax (because normal is boring)

  • Supports:

    • Variable declarations
    • Arithmetic expressions
    • Print statements
    • If-else conditions
    • While loops
  • Friendly error messages

  • Extensible and easy to play with


🛠 Example Code

class chalu
 bol "Hello World";
 
  note kar a = 1;
  note kar b = 0;

  jab tak (b < 5) {
    bol b;

    proxy mili toh (b == a) {
      bol "b is equal to a";
      agli class;
    } nahi mili toh (b == 0) {
      bol "b is equal to zero";
      
    } pakde gaye {
      bol "b is neither a nor 0";
    }

    b += 1;
  }
class khatam

Installation

npm i -g aklang

Usage

Create a new file (test.ak)

Edit the file with a text editor. You can also try out your code on AKLANG PlayGround

class chalu
  bol "All iz Well";
class khatam

Run

aklang test.ak

Output

All iz Well

🎯 Syntax Reference

Concept aklang Syntax Description
Program Start class chalu Entry point
Program End class khatam Exit point
Variable Declare note kar x = 10 Declare variable
Print bol "hello" Print output
If Condition proxy mili toh (condition) { ... } If block
Else If Condition nahi mili toh (condition) { ... } Else If block
Else pakde gaye { ... } Else block
While Loop jab tak (condition) {} While loop
Boolean True pass true
Boolean False fail false
Break Loop bunk maar break
Break Loop agli class continue

🧱 Built With JavaScript (Node.js)

⚠️ Roadmap

  • [✅] Parser
  • [✅] Interpreter
  • [✅] Conditionals & loops
  • [✅] Web playground
  • [✅] Error handling enhancements
  • Functions
  • Arrays

🤝 Contributing

Feel free to open issues or PRs. Go ahead! 🎉


📜 License

MIT – because sharing is caring.


🙏 Acknowledgements

Inspired by:

  • Bhailang - Greatly Inspired by them
  • All Indian coders who learned if-else before they learned to say "Tu sahi bol raha hai."

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published