Skip to content

thuglifeai/KamalLang

Repository files navigation

🎭 KamalLang – A Tribute to Kamal Haasan Through Code

KamalLang is a beginner-friendly, open-source programming language built on top of Python – designed to teach coding using the charisma, values, and legacy of Kamal Haasan.

🧠 Created with love by a Kamal fan, this project blends:

  • 🎬 Cinema + 🧑‍🏫 Education + 💻 Python

🌟 Why KamalLang?

  • To inspire newbies, kids, Tamil cinema fans, and Python beginners
  • To creatively connect pop culture with programming
  • As a tribute to Kamal Haasan's visionary work, intellect, and his mention of Replit during the "Thug Life" promo — which sparked this very journey.

🛠️ Features

  • KAMAL.SPEAK → Print text with Kamal's cinematic flair
  • INTELLECT var = value → Declare variables (inspired by Kamal's intellect)
  • IF condition THEN → Run conditional logic
  • String concatenation and arithmetic operations
  • Boolean logic with AND operator
  • ❤️ Built-in Kamal quotes and symbolic errors

🚀 How to Run

  1. This project runs directly on both Python and Replit - no setup needed!
  2. Click the Run button to execute the sample KamalLang program
  3. Modify the code in main.py to create your own KamalLang programs

📂 File Structure

main.py              # KamalLang interpreter and sample program
README.md            # You are here!
attached_assets/     # Reference materials and inspiration files

🎬 Example Programs

Basic Hello World

KAMAL.SPEAK "Vanakkam! Welcome to KamalLang"

Variables and Conditions

INTELLECT age = 70
IF age > 60 THEN KAMAL.SPEAK "Still evolving as an actor and thinker!"

Complete Sample Program

# Welcome to KamalLang!
KAMAL.SPEAK "Vanakkam! Welcome to KamalLang - Where Art Meets Code!"

INTELLECT age = 70
INTELLECT films = 230
INTELLECT thug_life = True

IF age > 60 THEN KAMAL.SPEAK "Vetri Nichayam! (Success is certain!)"
IF films > 200 THEN KAMAL.SPEAK "Indian cinema legend!"
IF thug_life AND age > 50 THEN KAMAL.SPEAK "Thug Life: Thinking, Understanding, Growing!"

INTELLECT fans = 1000000
INTELLECT new_fans = fans * 2
KAMAL.SPEAK "Kamal has millions of fans!"

KAMAL.SPEAK "Kamal Haasan is " + str(age) + " years young!"

🎯 Language Syntax

Commands

  • KAMAL.SPEAK "message" - Print output with Kamal's signature style
  • INTELLECT variable = value - Declare and assign variables
  • IF condition THEN action - Conditional execution

Data Types

  • Numbers: 70, 3.14
  • Strings: "Vanakkam!"
  • Booleans: True, False

Operations

  • Arithmetic: +, -, *, /
  • Comparison: >, <, >=, <=, ==
  • Logical: AND
  • String concatenation: "text" + str(variable)

🌟 Philosophy Behind KamalLang

Just like Kamal Haasan's diverse roles and constant evolution, KamalLang encourages:

  • Learning through creativity
  • Thinking beyond conventional boundaries
  • Understanding complex concepts through simple syntax
  • Growing as a programmer and thinker

"Thug Life: Thinking, Understanding, Growing!" - The core philosophy that drives this language.


🤝 Contributing

This project is built with educational intent. Feel free to:

  • Fork this Replit project
  • Add new KamalLang features
  • Create educational content
  • Share your KamalLang programs

🙏 Acknowledgments

  • Kamal Haasan - The inspiration behind everything
  • Replit - For providing the perfect platform mentioned by Kamal himself
  • Tamil Cinema - For endless creativity and storytelling
  • Python Community - For the foundation that makes this possible

📬 Connect

Built with ❤️ for education, cinema, and code.

"Life is beautiful, keep learning!" - Kamal Haasan philosophy in every line of code.


Vanakkam! Happy Coding! 🎭

About

An educational programming language inspired by Kamal Haasan, built on Python and culture.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors