π What is KemLang?
KemLang is a fun and beginner-friendly toy programming language inspired by Gujarati.
Instead of boring keywords, it lets you write programs using expressions like sharu
, lakho
, jo
, and samaapt
. β¨
Itβs perfect for:
- Students just starting out
- Native Gujarati speakers
- Curious developers who love creative languages
Try it instantly on the web or install it globally!
π Live Links
- π₯ Try it online β kemlang.vercel.app
- π Docs β kemlang.vercel.app
- π npm β npmjs.com/package/kemlang
- β GitHub β github.com/pritpatel2412/kemlang
π Quick Example
Create a file called hello.kem
:
sharu {
do naam = "KemLang";
lakho("Kem cho " + naam);
} samaapt
Then run it:
kemlang hello.kem
Output:
Kem cho KemLang
π§ Features Youβll Love
β
Gujarati-style syntax (sharu
, jo
, lakho
, etc.)
π§ Beginner-friendly constructs
π₯ CLI support to run .kem
files
π° Online playground built with React
π Backend interpreter using Python + FastAPI
π Cultural and fun Gujarati error messages
π§° Installation
Option 1: Global install
npm install -g kemlang
kemlang yourfile.kem
Option 2: Run instantly (no install)
npx kemlang yourfile.kem
Or just visit the online playground and code directly in your browser!
π¨βπΌ How It Works
KemLang uses a custom-built interpreter stack:
- Lexer: Breaks code into tokens
- Parser: Creates a tree structure
- Evaluator: Executes your logic
- Powered by a FastAPI backend + Node.js CLI
π Want to Contribute?
Whether youβre into compilers, frontend design, or Gujarati humor β contributions are welcome!
- π± Fork the repo
- π§ͺ Suggest improvements or fix bugs
- π Add new Gujarati keywords!
GitHub: github.com/pritpatel2412/kemlang
πΈ Preview
π¬ Final Thoughts
KemLang isnβt just a toy language β itβs a celebration of culture, creativity, and code. If this made you smile or think, give it a try!
β‘οΈ Star it on GitHub
β‘οΈ Try it online
β‘οΈ Share it with your friends
β‘οΈ And tell me your favorite Gujarati word to add as a keyword next!
Kem cho, devs? Let's make coding fun again! ππ
Made with β€οΈ by @pritpatel2412
Top comments (3)
βBro built a whole language because Python wasnβt Gujarati enough. RESPECT π₯β
βYou deserve a standing ovation and a chai sponsorship βπβ
βIf this isnβt viral by tomorrow, internet broken fr. ββ‘β