Sync all reference docs with the grammar

- precedence.csv regenerated to the actual 14-level chain (postfix and
  prefix levels, guarded alternatives, definition vs assignment)
- glyph-escapes.md regenerated from the lexer: 73 glyphs, exactly one
  ASCII escape each, verified code points; M1-deferred symbols listed
  separately; add \middot so every glyph has an escape
- math_prog_lang.md: M0/M1 symbol split, canonical handler arrow, one-role
  semicolon, real precedence table and brace-disambiguation rules; the ten
  example programs are now embedded verbatim and CI-parsed
- Whitepaper (md + tex + appendices): every mpl code block parses or is
  re-fenced as an explicitly-labelled M1+ design sketch; symbol tables
  replaced by a pointer to glyph-escapes.md; unbuilt tooling and unmeasured
  claims reworded as planned/envisioned
- docs/ARCHITECTURE.md: status preamble, real grammar excerpt, planned
  sections labelled as such
- DocumentationTest now also covers math_prog_lang.md and the whitepaper
- CHANGELOG and DECISIONS.md updated
This commit is contained in:
developtheweb 2026-07-09 03:19:43 -04:00
parent 96002ec1bf
commit 468a8045c7
14 changed files with 558 additions and 589 deletions

View file

@ -1,13 +1,15 @@
Level,Operators,Associativity,Description
9,function application,left,Function call f(x) or f x
8,"↯ ✎ ? ⧈ ⏲ (prefix)",right,Unary prefix operators
7,,left,Function composition
6,× ÷ ,left,Multiplication and division
5,+ -,left,Addition and subtraction
4,= ≠ < > ≤ ≥ ≈ ,non-associative,Comparison operators
3,,left,Logical AND
2,,left,Logical OR
1,,right,Implication
0,,right,Assignment
11,"f(a, b) ‧ ⊕ ⊖ ↴{…}",left,"Postfix operators: function call, qualified module access, resource alloc/release, exception handler"
10,"↯ ✎ ⧈ ⏲ - ⇀_ch ↽_ch (prefix)",right,"Unary prefix operators (including unary minus) and channel operations"
9,,left,Function composition
8,× ÷ ,left,Multiplication and division (/ is an ASCII alias of ÷)
7,+ -,left,Addition and subtraction
6,= ≠ < > ≤ ≥ ≈ ,non-associative,Comparison operators
5,,left,Logical AND
4,,left,Logical OR
3,,right,Implication / guard arrow
2,|,left,Guarded alternatives: (condition ⟹ result) | fallback
1,,right,Assignment
0,,right,Definition
-1,,left,Parallel composition
-2,;,left,Statement sequencing
-2,;,left,Expression sequencing (trailing ; permitted)

1 Level Operators Associativity Description
2 9 11 function application f(a, b) ‧ ⊕ ⊖ ↴{…} left Function call f(x) or f x Postfix operators: function call, qualified module access, resource alloc/release, exception handler
3 8 10 ↯ ✎ ? ⧈ ⏲ (prefix) ↯ ✎ ⧈ ⏲ - ⇀_ch ↽_ch (prefix) right Unary prefix operators Unary prefix operators (including unary minus) and channel operations
4 7 9 left Function composition
5 6 8 × ÷ ∗ left Multiplication and division Multiplication and division (/ is an ASCII alias of ÷)
6 5 7 + - left Addition and subtraction
7 4 6 = ≠ < > ≤ ≥ ≈ ∼ non-associative Comparison operators
8 3 5 left Logical AND
9 2 4 left Logical OR
10 1 3 right Implication Implication / guard arrow
11 0 2 | right left Assignment Guarded alternatives: (condition ⟹ result) | fallback
12 1 right Assignment
13 0 right Definition
14 -1 left Parallel composition
15 -2 ; left Statement sequencing Expression sequencing (trailing ; permitted)