Mathematics Programming Language - MPL is currently a research prototype demonstrating that programming languages can be built from mathematical notation. We have implemented a complete parser that validates the concept, but programs cannot yet be executed. This is a vision project seeking contributors to help build the interpreter and runtime.
https://mpl.codes
- Resolved all lexical blockers:
- Comments: -- single-line, {- -} multi-line
- Strings: "..." with escapes, """...""" raw
- Paths: Both 🖫"..." and \path"..."
- Fixed all 10 example files:
- Added semicolons to all statements
- Fixed factorial precedence
- Fixed network server forall loop
- Added comments to all examples
- Updated glyph-escapes.md with string escape sequences
- Updated math_prog_lang.md with complete lexical rules
- Fixed Chinese comma in structure list
- Updated README with badges and M0 exit criteria
- Marked ISSUE_M0_BLOCKERS.md as resolved
Ready for v0.1-alpha tag and ANTLR implementation
|
||
|---|---|---|
| examples | ||
| glyph-escapes.md | ||
| ISSUE_M0_BLOCKERS.md | ||
| math_prog_lang.md | ||
| precedence.csv | ||
| README.md | ||
Mathematical Programming Language (MPL)
A programming language that maintains cognitive universality while supporting all modern programming paradigms through mathematical notation.
Quick Start
✎"Hello, World!"
Repository Structure
math_prog_lang.md- Complete language specificationISSUE_M0_BLOCKERS.md- Critical decisions needed before M0 implementationglyph-escapes.md- ASCII escape sequences for all Unicode glyphsprecedence.csv- Operator precedence tableexamples/- Example programs from the specification
M0 Milestones
- ✅ Language specification consolidated
- ✅ Pre-M0 audit completed
- ✅ Lexical blockers resolved (see ISSUE_M0_BLOCKERS.md)
- ⏳ Implement ANTLR 4 grammar
- ⏳ Create test suite (500 LOC)
- ⏳ Achieve M0 exit criteria
M0 Exit Criteria
- Lexer round-trips every glyph via escape and direct entry
- Parser accepts all files in
examples/ grmtools(or ANTLR diagnostics) reports 0 ambiguities- Fuzz seed (10k random tokens) yields no segfault
- Pretty-printer emits code that re-parses into identical AST
Contact
- GitHub: @developtheweb
- Email: developtheweb@protonmail.com