I built a programming language that speaks Urdu, Turkish, and Spanish — from an Android phone
English is the invisible gatekeeper of programming. Before you write your first if , you already need to read English. For 6 billion people, that's not a feature — it's a wall. Two years ago I started asking a simple question: what if programming keywords existed natively in the learner's mother tongue? The answer became NexusLang — an open-source, self-contained programming language where you…
English is the invisible barrier for programming. Before writing your first "if," you already need proficiency in English. For six billion people, that isn't a feature; it's a barrier. Two years ago, I pondered a simple question: What if programming keywords existed natively in the learner's native language? This gave birth to NexusLang - an open-source, self-contained programming language where you write "agar" instead of "if" in Urdu, "eğer" in Turkish, or "si" in Spanish.
The compiler translates it to standard English syntax behind the scenes, allowing you to think in your language while shipping globally. Currently, three language packs (Urdu, Turkish, Spanish) plus English are live, each with 25 native keywords and passing 100% of the test suite. The entire stack was built from an Android phone in Argentina, with zero budget and a cross-border partnership in Pakistan.
NexusLang attacks the gatekeeper by targeting the actual syntax, not just the user experience. The insight is simple: keywords are vocabulary, not grammar. Programming grammar - scope, types, control flow - is universal, while the vocabulary is just labels. Labels can be translated, and NexusLang demonstrates this. NexusLang v11 is self-contained, with no need to translate to Python; source code runs on its own engine.
Lexer tokenizes the source, preserving strings and comments. Parser builds an Abstract Syntax Tree (AST) using recursive descent. Interpreter walks the tree, executing over the AST with scoped environments. Each native keyword maps to its English equivalent during tokenization, compiling to valid standard code. No magic, no runtime overhead, and no lock-in.
NexusLang isn't a toy; it ships with imperative, functional, and object-oriented programming features, including variables, operators, conditionals, loops, functions, recursion, closures, lists, dictionaries, strings, math, classes, constructors, methods, attributes, modules, file I/O, and try/catch error handling. The language packs include dedicated formatters and their own test suites.
Urdu has full RTL support in the web interface. I built NexusLang, its compiler, parser, test runner, web interface, documentation, and marketplace from an Android phone in Argentina, not using a laptop. This forced elegance, resulting in a smaller, cleaner, and more testable codebase. I partnered with a co-founder in Lahore for seller onboarding and share 50/50 equity in NexusShop, a parallel marketplace.
The language packs will pilot in Pakistani technical schools next quarter through the Virtual University of Pakistan. The roadmap includes Pakistani and Nigerian school pilots, a university pilot program, a mobile app for merchant onboarding, community-contributed keyword libraries, and NexusLang Pro with advanced features. Next, I plan Pakistani school pilots and a 5th language pack for Arabic with RTL support.
I envision IDE integrations, such as a VSCode extension with native keyword autocomplete, and a bridge to WebAssembly so NexusLang code runs anywhere JavaScript runs. The core question remains: Is a mother-tongue programming language a real contribution to computer science or merely a pedagogical bridge that learners outgrow in six months?
Every learner who writes their first "agar" in Urdu instead of staring at "if" is a small victory against the gatekeeper. The repository is on GitHub, the live demo is available, and the marketplace is open for contribution. Feedback, especially brutal, is welcome.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.