jay123anta/amitabhc

2

stars

80

commits

HTML

primary language

Aug 19, 2026

updated

README

AmitabhC

The Bollywood Programming Language

"Rishtey mein toh hum tumhare compiler lagte hain!"

LIGHTS
CAMERA
    BOLO "Namaste, Duniya!"
ACTION

Version License: MIT Tests npm

AmitabhC is an esoteric programming language where every keyword is an Amitabh Bachchan film, character, or dialogue. Variables are VIJAY. Constants are DON. Errors are iconic dialogues. This isn't just a language — it's a statement.


Install

npm install -g amitabhc

Run

amitabhc run hello.amitabhc
amitabhc repl                    # Interactive mode
amitabhc examples                # List examples
amitabhc test                    # Run 76 tests

Or use the web playground — no install needed:


More Examples

Variables, Strings, Loops

LIGHTS
CAMERA
    VIJAY hero = "Amitabh"
    DON FILMS = 200

    BOLO "Star: ${hero}, Films: ${FILMS}"

    VIJAY top[] = {"Deewar", "Sholay", "Don", "Agneepath"}
    HAR EK film MEIN top
        BOLO "  ${film}"
    KHATAM
ACTION

Functions with Recursion

LIGHTS
CAMERA
    NAAM factorial(n)
        AGAR n <= 1
            WAPAS 1
        BAS
        WAPAS n * factorial(n - 1)
    PURA

    BOLO "10! = ${factorial(10)}"
ACTION

Error Handling

LIGHTS
CAMERA
    AGNEEPATH
        VIJAY x = 10 / 0
    MRITYU err
        BOLO "Caught: ${err}"
    PRATIGYA
        BOLO "Cleanup done"
    KHATAM
ACTION

Switch-Case (KBC Style)

LIGHTS
CAMERA
    VIJAY grade = "A"
    KBC_SAWAAL grade
        OPTION "A"
            BOLO "Excellent!"
        OPTION "B"
            BOLO "Good"
        SAHI_JAWAB
            BOLO "Keep trying"
    AGLE_SAWAAL
ACTION

Language at a Glance

PROGRAM:    LIGHTS ... CAMERA ... ACTION
VARIABLE:   VIJAY x = 10
CONSTANT:   DON PI = 3.14
ARRAY:      VIJAY a[] = {1, 2, 3}
DICT:       VIJAY d = DEEWAR_BANAO{"k": "v"}
PRINT:      BOLO "text"
INPUT:      SUNO variable
IF:         AGAR cond ... NAHI TOH ... BAS
FOR:        BAAR BAAR N MEIN i ... KHATAM
WHILE:      JAB TAK cond ... RAHEGA
DO-WHILE:   ZANJEER_LOOP ... TAB TAK cond
FOR-EACH:   HAR EK x MEIN arr ... KHATAM
FUNCTION:   NAAM f(a, b) ... WAPAS val ... PURA
TRY-CATCH:  AGNEEPATH ... MRITYU e ... PRATIGYA ... KHATAM
SWITCH:     KBC_SAWAAL val ... OPTION x ... SAHI_JAWAB ... AGLE_SAWAAL
BREAK:      DEEWAR
CONTINUE:   SILSILA
TRUE:       SHAKTI
FALSE:      KAALIA
NULL:       LAAWARIS

Built-in Namespaces

6 namespaces, each named after an Amitabh Bachchan film:

NamespaceFilmPurposeMethods
SHAHENSHAHShahenshah (1988)Stringslength, uppercase, lowercase, contains, replace, trim, split, reverse, repeat, ... (19 total)
COOLIECoolie (1983)Mathabs, floor, ceil, round, sqrt, pow, min, max, random, sin, cos, tan, log, PI, E
KHAZANATreasureArrayslength, push, pop, shift, unshift, slice, join, reverse, includes, indexOf, concat, sort
NASEEBNaseeb (1981)Timeabhi, saal, mahina, din, ghanta, minute, second, tarikh, waqt, timestamp
ZANJEERZanjeer (1973)Typestype, isAnk, isShabd, isKhazana, isShaktiKaalia, isLaawaris, isDeewar, toAnk, toShabd, toShaktiKaalia
DEEWARDeewar (1975)Dictskeys, values, hasKey, remove, size, merge

Error Messages

When your code fails, AmitabhC delivers Amitabh dialogues:

ErrorDialogue
Undefined variable"Don ko pakadna mushkil hi nahi, naamumkin hai!"
Stack overflow"Deewar bahut oonchi ho gayi!"
Division by zero"Zero se divide kaise kar sakte hain?"
Constant reassignment"Main aaj bhi phenke hue paise nahin uthata!"
Type mismatch"Aaj mere paas type hai, tumhare paas kya hai?"
Array out of bounds"Hum jahan khade hote hain, line wahi se shuru hoti hai!"

How AmitabhC Compares

FeatureAmitabhCArnoldCLOLCODE
ThemeAmitabh BachchanSchwarzeneggerInternet memes
VariablesVIJAY x = 5DECLARE xI HAS A x ITZ 5
PrintBOLO "text"TALK TO THE HAND "text"VISIBLE "text"
FunctionsNAAM ... PURAN/AHOW IZ I ... IF U SAY SO
Error handlingAGNEEPATH / MRITYUN/AN/A
Namespaces6 built-inN/AN/A
DictionariesDEEWAR_BANAO{...}N/AN/A
Switch-caseKBC_SAWAALN/AN/A
Do-whileZANJEER_LOOPN/AN/A
RuntimeBrowser + Node.js CLIJVMInterpreter

VS Code Extension

Syntax highlighting and 28 snippets for .amitabhc files. See vscode-extension/.


Documentation


Testing

npm test                  # or
node tests/run_tests.js

75 tests covering all language features.


Contributing

  1. Fork the repository
  2. Create a branch (git checkout -b feature/your-feature)
  3. Commit your changes
  4. Open a Pull Request

Valued contributions: new examples, more Amitabh error dialogues, additional namespace methods, docs, bug fixes.


License

MIT License. See LICENSE.


"Aaj khush toh bahut hoge tum... ki tumne AmitabhC mein code kiya."

Made by jay123anta

Contributors

jay123anta

80 commits

jay123anta/amitabhc

2

stars

80

commits

HTML

primary language

Aug 19, 2026

updated

README

AmitabhC

The Bollywood Programming Language

"Rishtey mein toh hum tumhare compiler lagte hain!"

LIGHTS
CAMERA
    BOLO "Namaste, Duniya!"
ACTION

Version License: MIT Tests npm

AmitabhC is an esoteric programming language where every keyword is an Amitabh Bachchan film, character, or dialogue. Variables are VIJAY. Constants are DON. Errors are iconic dialogues. This isn't just a language — it's a statement.


Install

npm install -g amitabhc

Run

amitabhc run hello.amitabhc
amitabhc repl                    # Interactive mode
amitabhc examples                # List examples
amitabhc test                    # Run 76 tests

Or use the web playground — no install needed:


More Examples

Variables, Strings, Loops

LIGHTS
CAMERA
    VIJAY hero = "Amitabh"
    DON FILMS = 200

    BOLO "Star: ${hero}, Films: ${FILMS}"

    VIJAY top[] = {"Deewar", "Sholay", "Don", "Agneepath"}
    HAR EK film MEIN top
        BOLO "  ${film}"
    KHATAM
ACTION

Functions with Recursion

LIGHTS
CAMERA
    NAAM factorial(n)
        AGAR n <= 1
            WAPAS 1
        BAS
        WAPAS n * factorial(n - 1)
    PURA

    BOLO "10! = ${factorial(10)}"
ACTION

Error Handling

LIGHTS
CAMERA
    AGNEEPATH
        VIJAY x = 10 / 0
    MRITYU err
        BOLO "Caught: ${err}"
    PRATIGYA
        BOLO "Cleanup done"
    KHATAM
ACTION

Switch-Case (KBC Style)

LIGHTS
CAMERA
    VIJAY grade = "A"
    KBC_SAWAAL grade
        OPTION "A"
            BOLO "Excellent!"
        OPTION "B"
            BOLO "Good"
        SAHI_JAWAB
            BOLO "Keep trying"
    AGLE_SAWAAL
ACTION

Language at a Glance

PROGRAM:    LIGHTS ... CAMERA ... ACTION
VARIABLE:   VIJAY x = 10
CONSTANT:   DON PI = 3.14
ARRAY:      VIJAY a[] = {1, 2, 3}
DICT:       VIJAY d = DEEWAR_BANAO{"k": "v"}
PRINT:      BOLO "text"
INPUT:      SUNO variable
IF:         AGAR cond ... NAHI TOH ... BAS
FOR:        BAAR BAAR N MEIN i ... KHATAM
WHILE:      JAB TAK cond ... RAHEGA
DO-WHILE:   ZANJEER_LOOP ... TAB TAK cond
FOR-EACH:   HAR EK x MEIN arr ... KHATAM
FUNCTION:   NAAM f(a, b) ... WAPAS val ... PURA
TRY-CATCH:  AGNEEPATH ... MRITYU e ... PRATIGYA ... KHATAM
SWITCH:     KBC_SAWAAL val ... OPTION x ... SAHI_JAWAB ... AGLE_SAWAAL
BREAK:      DEEWAR
CONTINUE:   SILSILA
TRUE:       SHAKTI
FALSE:      KAALIA
NULL:       LAAWARIS

Built-in Namespaces

6 namespaces, each named after an Amitabh Bachchan film:

NamespaceFilmPurposeMethods
SHAHENSHAHShahenshah (1988)Stringslength, uppercase, lowercase, contains, replace, trim, split, reverse, repeat, ... (19 total)
COOLIECoolie (1983)Mathabs, floor, ceil, round, sqrt, pow, min, max, random, sin, cos, tan, log, PI, E
KHAZANATreasureArrayslength, push, pop, shift, unshift, slice, join, reverse, includes, indexOf, concat, sort
NASEEBNaseeb (1981)Timeabhi, saal, mahina, din, ghanta, minute, second, tarikh, waqt, timestamp
ZANJEERZanjeer (1973)Typestype, isAnk, isShabd, isKhazana, isShaktiKaalia, isLaawaris, isDeewar, toAnk, toShabd, toShaktiKaalia
DEEWARDeewar (1975)Dictskeys, values, hasKey, remove, size, merge

Error Messages

When your code fails, AmitabhC delivers Amitabh dialogues:

ErrorDialogue
Undefined variable"Don ko pakadna mushkil hi nahi, naamumkin hai!"
Stack overflow"Deewar bahut oonchi ho gayi!"
Division by zero"Zero se divide kaise kar sakte hain?"
Constant reassignment"Main aaj bhi phenke hue paise nahin uthata!"
Type mismatch"Aaj mere paas type hai, tumhare paas kya hai?"
Array out of bounds"Hum jahan khade hote hain, line wahi se shuru hoti hai!"

How AmitabhC Compares

FeatureAmitabhCArnoldCLOLCODE
ThemeAmitabh BachchanSchwarzeneggerInternet memes
VariablesVIJAY x = 5DECLARE xI HAS A x ITZ 5
PrintBOLO "text"TALK TO THE HAND "text"VISIBLE "text"
FunctionsNAAM ... PURAN/AHOW IZ I ... IF U SAY SO
Error handlingAGNEEPATH / MRITYUN/AN/A
Namespaces6 built-inN/AN/A
DictionariesDEEWAR_BANAO{...}N/AN/A
Switch-caseKBC_SAWAALN/AN/A
Do-whileZANJEER_LOOPN/AN/A
RuntimeBrowser + Node.js CLIJVMInterpreter

VS Code Extension

Syntax highlighting and 28 snippets for .amitabhc files. See vscode-extension/.


Documentation


Testing

npm test                  # or
node tests/run_tests.js

75 tests covering all language features.


Contributing

  1. Fork the repository
  2. Create a branch (git checkout -b feature/your-feature)
  3. Commit your changes
  4. Open a Pull Request

Valued contributions: new examples, more Amitabh error dialogues, additional namespace methods, docs, bug fixes.


License

MIT License. See LICENSE.


"Aaj khush toh bahut hoge tum... ki tumne AmitabhC mein code kiya."

Made by jay123anta

Contributors

jay123anta

80 commits

Languages

HTML

64.3%

JavaScript

27.6%

CSS

7.4%