
A multilingual programming language where the same AST runs English, French, Spanish, etc.
What if the only thing that changed between English and French code was the surface syntax, not the interpreter? tl;dr 1. One tiny semantic core, many language-specific “frontends”. 2. Code written in French, English, etc. maps to the same AST and runtime. 3. You can swap surface languages without changing the underlying program. Most programming languages quietly assume that you think in English. Keywords, error messages, tutorials, library names – everything is shaped around one language, even when the underlying semantics are universal. I’ve been experimenting with a different approach: keep a tiny, shared semantic core, and let the surface syntax (keywords, word order) adapt to the programmer’s natural language. The result is an interpreter where the same AST can execute code written in French, English, Spanish, Arabic, Japanese, and more – without a translation step. Repository : https://github.com/johnsamuelwrites/multilingual Why separate surface syntax from the core? When we te
Continue reading on Dev.to Python
Opens in a new tab


