DEV Community

Prit Patel
Prit Patel

Posted on

Introducing KemLang – A Gujarati-Inspired Toy Programming Language with a Smile πŸ˜„

🌟 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


πŸš€ Quick Example

Create a file called hello.kem:

sharu {
  do naam = "KemLang";
  lakho("Kem cho " + naam);
} samaapt
Enter fullscreen mode Exit fullscreen mode

Then run it:

kemlang hello.kem
Enter fullscreen mode Exit fullscreen mode

Output:

Kem cho KemLang
Enter fullscreen mode Exit fullscreen mode

🧠 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
Enter fullscreen mode Exit fullscreen mode

Option 2: Run instantly (no install)

npx kemlang yourfile.kem
Enter fullscreen mode Exit fullscreen mode

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!

  1. 🌱 Fork the repo
  2. πŸ§ͺ Suggest improvements or fix bugs
  3. 🌍 Add new Gujarati keywords!

GitHub: github.com/pritpatel2412/kemlang


πŸ“Έ Preview

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)

Collapse
 
prince_shah_a6e44ca6b4b90 profile image
prince shah

β€œBro built a whole language because Python wasn’t Gujarati enough. RESPECT πŸ”₯”

Collapse
 
nosta_534 profile image
Nosta

β€œYou deserve a standing ovation and a chai sponsorship β˜•πŸ‘‘β€

Collapse
 
shrey_patel_2322eec3ffa71 profile image
shrey patel

β€œIf this isn’t viral by tomorrow, internet broken fr. β­βš‘β€