Breaking the last language barrier in technology
The M0 core runs โ with ratified semantics. This repository contains the grammar, the parser, and the browser interpreter (js/mpl.js) that runs the M0 core today at mpl.codes. Its semantics are not folklore: every judgment call is recorded and ruled in conformance/JUDGMENT_CALLS.md, pinned by 89 ratified conformance tests that gate CI, and a differential fuzzer holds the interpreter and the grammar to zero divergence. A native runtime beyond the browser core does not exist yet โ building it is the next milestone, and contributors are welcome.
Every item below is enforced by CI on every push:
- An ANTLR 4 grammar built from mathematical symbols that compiles with zero errors and zero warnings (warnings are treated as errors)
- All 10 example programs parse (
./gradlew parseExamples) - A test suite covering the lexer, the parser, the examples, and every
```mplcode block in this README (./gradlew test) - An ASCII escape sequence for every Unicode symbol (glyph-escapes.md)
- The M0 core executes with ratified semantics: 89 ratified conformance tests (
node conformance/harness/run.mjs --ratified), exact rational arithmetic, and a recorded ruling for every semantic question (conformance/JUDGMENT_CALLS.md)
- No native runtime - The M0 core runs in the browser interpreter (
js/mpl.js); everything beyond it parses but does not run yet - No type checking - Types are recognized but not validated
- No standard library - No built-in functions
- No tooling - Basic parser only
In a world where 80% of humanity doesn't speak English, why should programmingโthe literacy of the 21st centuryโrequire it? MPL demonstrates that we can build programming languages using mathematical symbols that children already understand, making computational thinking accessible to billions previously excluded by language barriers.
This is cognitive justice in action.
"Why do I need to know English to write a program?" โ Fatima, 10 years old, Cairo
Every design decision in MPL must pass one simple test: Can a 10-year-old non-English speaker understand this?
# English required:
for n in [1, 2, 3, 4, 5]:
print(n * n)-- Mathematical symbols only:
โ n โ [1, 2, 3, 4, 5] : โ(n ร n)
If Fatima can't understand it with her basic math knowledge, we redesign it. No exceptions.
| ๐ Educator? | ๐ป Developer? | ๐ Changemaker? |
|---|---|---|
| See the Vision | Technical Details | Why This Matters |
| Imagine teaching without English | Help build the runtime | Support cognitive justice |
| Traditional (English Required) | MPL (Universal) |
|---|---|
print("Hello, World!") |
|
| English words: print | Universal symbol: โ (output/trace) |
Note: This syntax is valid and parses. The M0 core runs in the browser interpreter at mpl.codes; features beyond the M0 core parse but do not run yet.
Write code using mathematical symbols instead of English words. It's that simple.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Mathematical Notation โ
โ ฮปn: (n โค 1 โน 1) | (n ร fact(n-1)) โ
โโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Unicode Input โ
โ (Visual palette, voice, keyboard) โ
โโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ANTLR 4 Parser โ
โ Lexer โ Parser โ AST โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Today the parser accepts two spellings of every symbol: the Unicode glyph (ฮป) and its ASCII escape (\lambda). The rest are the input methods we envision tooling for:
- โจ๏ธ Type โ
\lambda(works today, in any editor) - ๐ Click โ Visual symbol palette (envisioned)
- ๐ค Speak โ "Lambda" in ANY language (envisioned)
- โ๏ธ Draw โ Handwriting recognition on tablets (envisioned)
- โก Shortcut โ Platform shortcuts (envisioned)
๐ง Technical details (click to expand)
- Full Unicode support, including supplementary-plane symbols (๐, ๐น, ๐ซ)
- Every glyph has exactly one ASCII escape (glyph-escapes.md)
Input Methods โ Unicode Stream โ ANTLR 4 Lexer โ Parse Tree
Type checking, optimization and code generation are planned, not built.
- Compiles with zero ANTLR errors and warnings (enforced in CI)
- Operator precedence documented in precedence.csv
- View full ANTLR grammar
Mathematical symbols as humanity's common language
- No translation needed โ Math is already universal
- Cultural neutrality โ No linguistic imperialism
- Instant comprehension โ Symbols map to concepts directly
Meet learners where they are
Only ASCII escapes exist today; the rest is the tooling we want to build:
โโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ
โ Visual โ Voice โ Keyboard โ Handwriting โ
โ Palette โ Input โ Escapes โ Recognition โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโผโโโโโโโโโโโโโโผโโโโโโโโโโโโโโค
โ Click ฮป โ Say "lambda"โ Type \lambdaโ Draw ฮป โ
โ from menu โ in any lang โ (works now) โ on screen โ
โโโโโโโโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโโโโโโโ
- ASCII escapes โ
\lambda,\forall, โฆ work in any editor today - Visual palette โ Click symbols like emoji (envisioned)
- Voice input โ Speak in your native language (envisioned)
- Handwriting โ Natural for mathematical notation (envisioned)
From arithmetic to algorithms
-- Level 1: Basic math (everyone knows this!)
x โ 5 + 3;
y โ x ร 2;
-- Level 2: Logic (learned in school)
x > 10 โง y < 20 โน โ"Success!";
-- Level 3: Advanced (natural progression)
squares โ 0;
โ n โ [1, 2, 3, 4, 5] : squares โ squares + n ร n;
Consider a hypothetical student, "Maria" from Sรฃo Paulo:
- She loves math and logic puzzles
- She wants to learn programming
- But she must first memorize English keywords like
for,while,if,else - The Portuguese word "for" means "went" - adding confusion
- She spends more time translating than learning computational thinking
With MPL fully implemented, we envision students could:
- Write their first program in minutes using familiar mathematical symbols
- Focus on logic and problem-solving, not foreign vocabulary
- Learn alongside parents who also don't speak English
- Build confidence through immediate understanding
If MPL were fully implemented and deployed in classrooms, we hypothesize it could achieve:
| Potential Metric | Traditional Approach | MPL Vision |
|---|---|---|
| Time to understand loops | Days of memorizing for |
Minutes with โ symbol |
| Cognitive load | High (translate + learn) | Lower (direct understanding) |
| Parent involvement | Limited by English | Possible with math symbols |
Note: These are aspirational goals based on our hypothesis, not measured results.
These are hypothetical scenarios we hope MPL could enable once fully implemented:
๐ Imagine: A student's potential journey
We envision students could progress like this:
Starting point: Basic math knowledge, no English
-- Month 1: First program using familiar symbols
โ"Jambo!" -- Hello in their language
Growing skills: Applying math knowledge to programming
-- Month 6: Using mathematical concepts they know
data โ [23, 45, 67, 34, 89, 12];
total โ 0;
โ x โ data : total โ total + x;
average โ total รท 6;
โ("Average: " + average)
Sharing knowledge: Teaching others in their community
This is our vision - not current reality. Help us make it possible!
Note: These examples show valid MPL syntax that our parser accepts (a test extracts every code block on this page and parses it). The M0-core subset runs in the browser interpreter at mpl.codes; the rest parses but does not run yet.
Some notation you might expect from math class โ โ, โ, ยฒ, % (modulo), |x|, ranges like [1..10] โ is deliberately absent: it is deferred to milestone M1, where each symbol will arrive together with defined semantics (see DECISIONS.md).
What every child knows
-- Store values (like math class!)
length โ 5;
width โ 3;
area โ length ร width;
โ("Area = " + area);
-- Make decisions: (condition โน result) | fallback
age โ 15;
(age โฅ 18 โน โ"Adult") | โ"Minor";
Natural progression from math
-- Do something for every element (โ = "for all")
โ n โ [1, 2, 3, 4, 5] : โ(n ร n);
-- Accumulate a running total
total โ 0;
โ n โ [1, 2, 3, 4, 5] : total โ total + n;
โ("Total: " + total);
Solving community problems
-- Weather data analysis
temperatures โ [28, 30, 27, 31, 29, 33, 28];
total โ 0;
โ t โ temperatures : total โ total + t;
ฮผ โ total รท 7;
โ("Average: " + ฮผ + "ยฐC");
-- Parallel processing (โ = parallel)
results โ analyzeNorth() โ analyzeSouth() โ analyzeEast();
For those ready to go deeper
-- Function composition (โ, straight from math class)
double โ ฮปn: n ร 2;
addOne โ ฮปn: n + 1;
transform โ double โ addOne;
โ(transform(5));
-- Higher-order functions
apply โ ฮปf, x: f(x);
โ(apply(ฮปn: n ร n, 6));
We believe the core innovation of MPL is proving that mathematical notation can replace English keywords. By releasing the parser, we demonstrate this is grammatically possible and invite the community to help build the rest.
The parser alone proves several key points:
- Mathematical symbols can express the core programming constructs (see the ten examples)
- A language without English keywords is technically feasible
- The grammar compiles with zero ANTLR errors and warnings, enforced in CI
- ASCII fallbacks make it universally typeable
Sometimes the idea is more important than the implementation. By sharing MPL now, we hope to inspire others to think differently about programming languages and who they exclude.
- Every symbol has exactly one meaning and one ASCII escape (glyph-escapes.md)
- Operator precedence is documented in precedence.csv and exercised by the test suite
- The grammar compiles with zero ANTLR errors and warnings (
-Werror, enforced in CI) - 200+ syntax assertions across the lexer, parser, example, and documentation test suites
- Full grammar specification
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Input Layer (Multi-modal) โ
โ Visual โ Voice โ Keyboard โ Handwriting โ
โโโโโโฌโโโโโดโโโโฌโโโโดโโโโโฌโโโโโดโโโโโโโโฌโโโโโโโโโ
โ โ โ โ
โโโโโโผโโโโโโโโโผโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโ
โ Unicode Normalization โ
โ (UTF-8 with BiDi support) โ
โโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโ
โ ANTLR 4 Parser โ
โ Lexer โ Parser โ AST Generation โ
โโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโ
โ Semantic Analysis (planned) โ
โ Type Checking โ Effect Analysis โ
โโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโ
โ Code Generation (planned) โ
โ LLVM โ JVM โ JavaScript โ Python โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Only the parser stage exists today; the lower stages are the planned architecture. We publish no performance numbers until CI measures them.
- Core parser implementation
- Basic syntax examples
- Grammar validation complete
- Educational materials in development
- Basic expression evaluation
- Control flow implementation
- Function calls
- Standard library basics
- First pilot classroom test
- Basic curriculum development
- Teacher guide creation
- Community feedback integration
- Multi-school pilots
- Research partnerships
- Policy advocacy
- Global community building
| Resource | Description | Get Started |
|---|---|---|
| Classroom Kit | Future: Lesson plans and exercises | Coming soon |
| Teacher Training | Future: Online certification | Planned |
| Community Forum | Future: Educator community | In development |
| Student Showcase | Future: Project gallery | Under consideration |
# Clone and build
git clone https://github.com/developtheweb/mpl.git
cd mpl
./gradlew build
# Run tests
./gradlew test
# Parse examples (validation only, no execution)
./gradlew parseExamplesKey contribution areas:
- ๐ค Symbol input methods
- ๐ Localization systems
- ๐ Educational content
- ๐ง Language features
- ๐ฑ Mobile applications
Contributing guidelines | Architecture docs | GitHub issues
- Cognitive load studies โ Measuring comprehension rates
- Learning outcome analysis โ Long-term retention data
- Cultural adaptation โ Symbol interpretation across cultures
- Neurodiversity research โ Benefits for different learning styles
Help us reach more children:
- ๐ Policy templates for education ministries - Coming soon
- ๐ค Speaker materials for conferences - In development
- ๐ Research findings - See whitepaper
- ๐จ Media kit - Coming soon
Imagine a world where:
- A teacher in Beijing could explain loops using โ instead of
for - A parent in Mumbai could understand their child's code without knowing English
- Education ministers could provide programming education without requiring English literacy
These aren't testimonials - they're possibilities we're working toward. MPL is still just a parser, but it proves that programming without English is possible.
| ๐ Educators | ๐ป Developers | ๐๏ธ Institutions | ๐ฐ Supporters |
|---|---|---|---|
| Share the vision | Contribute code | Contact us to explore | Star the project |
| Imagine the possibilities | Build the runtime | Research partnerships | Spread the word |
| ๐ Documentation | ๐ฌ Whitepaper | ๐ง Contact |
|---|---|---|
| View specs | Read the vision | Get in touch |
The idea for MPL came from a simple observation: children worldwide learn the same mathematical symbols (+, -, ร, รท, =) but must learn English to program. This creates an unnecessary barrier.
Imagine a student asking: "Why do I need to know English to tell a computer what to do? I know math. Isn't that enough?"
This hypothetical question captures the essence of MPL. Mathematical thinking IS enough. We're building this proof of concept to demonstrate it's possible.
Why mathematical symbols work universally (click to expand)
Mathematical notation evolved over millennia to be:
- Culture-agnostic โ Symbols transcend linguistic boundaries
- Cognitively efficient โ Direct concept-to-symbol mapping
- Progressively learnable โ Builds on existing knowledge
fMRI studies show mathematical symbol processing activates language-independent brain regions, enabling comprehension without linguistic translation.
- Reduced cognitive load โ Single-step comprehension
- Transfer learning โ Math knowledge directly applies
- Cultural preservation โ Think in your native language
- Universal collaboration โ Code readable globally
We envision collaborating with organizations like:
| Type of Partner | Potential Role | Envisioned Impact |
|---|---|---|
| UN Agencies | Education frameworks | Global policy influence |
| Universities | Research partnerships | Cognitive studies |
| Tech Companies | Technical support | Infrastructure development |
| Local NGOs | Community implementation | Grassroots adoption |
Note: We are actively seeking our first institutional partners. Contact us if interested.
We're seeking partnerships with:
- ๐ซ Schools & Universities โ Pilot programs
- ๐ข Tech Companies โ Internships for MPL students
- ๐๏ธ Governments โ National curriculum integration
- ๐ Research Institutions โ Impact studies
- ๐ก NGOs โ Community implementation
Contact us to explore partnerships
MPL is just the beginning. Our vision extends to:
- Mathematical Interfaces โ Operating systems using symbols
- Universal IDE โ Development environments without language barriers
- Symbolic Databases โ Query languages using set notation
- AI Training โ Teaching AI in mathematical notation
- Global Standard โ ISO standardization for universal programming
By 2030, we envision a world where:
- โ Any child can learn programming in their native cognitive framework
- โ No talent is lost to language barriers
- โ Global collaboration happens without linguistic friction
- โ Cognitive diversity strengthens our collective problem-solving
- โ Technology truly serves all humanity
Together, we're not just teaching programming. We're democratizing the power to create.
This is what we're building toward - a world where every child's way of thinking matters in programming.
โญ Star this repository to support cognitive justice in programming
Mathematical Programming Language โ Where every mind can code
GitHub โข Documentation โข Contact
Made with โค๏ธ for the 80% of humanity waiting to code