I Built a Programming Language That Speaks 8 Human Languages
Source: Dev.to
The Problem
4.5 billion people don’t speak English fluently. Yet every mainstream programming language—Python, JavaScript, Java—forces you to learn English keywords before writing your first line of code. For a 12‑year‑old in São Paulo, Mumbai, or Beijing, if, while, and function are foreign words. They have to learn a new human language before they can learn computational thinking.
Zuse: A Multilingual Programming Language
Zuse lets you code in your native language. The same program written in four languages compiles to the exact same abstract syntax tree (AST) and can be transpiled to Python, JavaScript, Java, C#, or WebAssembly.
Example Programs
German
WENN alter >= 18 DANN
AUSGABE "Willkommen!"
ENDE WENNEnglish
IF age >= 18 THEN
PRINT "Welcome!"
END IFHindi
अगर उम्र >= 18 तो
दिखाओ "स्वागत है!"
अंत अगरChinese
如果 年龄 >= 18 则
输出 "欢迎!"
结束 如果All four versions produce the same canonical AST.
Architecture
8 Human Languages → Lexer → Canonical AST → 5 BackendsKeywords are loaded from external JSON configuration files, so the parser and interpreter only see canonical tokens. Adding a new language is literally adding a JSON file.
Adding a New Language (example: hindi.json)
{
"KW_WENN": "अगर",
"KW_DANN": "तो",
"KW_SONST": "वरना",
"KW_AUSGABE": "दिखाओ"
}Features
- Full OOP – classes, inheritance, polymorphism
- Error handling –
try/catch - Lambda functions – anonymous functions
- 2D Game Engine – sprites, collision detection, 60 fps game loop
- Turtle Graphics – draw fractals and stars
- IDE – syntax highlighting, debugger with breakpoints
- LSP Server – VS Code integration
- Package Manager – install and share Zuse packages
- 1086+ automated tests
Interoperability with Python
Because Zuse runs on Python, you can import any Python library:
BENUTZE pandas ALS pd
daten = pd.read_csv("data.csv")
AUSGABE daten.describe()A student can learn with AUSGABE and SCHLEIFE, and the same day analyze real data with pandas or build charts with matplotlib.
Inspiration and Philosophy
The name comes from Konrad Zuse, who built the Z3 in 1941—the world’s first functional programmable computer—and designed Plankalkül, the first high‑level programming language. His philosophy of simplicity guides this project:
“Because ‘simple’ is simply simple.”
Project Information
- GitHub:
- License: GPL v3
- Currently supports: German 🇩🇪, English 🇬🇧, Spanish 🇪🇸, French 🇫🇷, Italian 🇮🇹, Portuguese 🇵🇹, Hindi 🇮🇳, Chinese 🇨🇳
Call for Feedback
I’d love your feedback. What language should we add next? 🌍