mpl/examples/02_factorial.mpl
developtheweb 1fb7e360f5 Resolve M0 blockers and fix all examples
- 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
2025-07-25 12:21:52 -04:00

4 lines
No EOL
141 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- Factorial example with proper precedence
factorial ≜ λn∈: (n≤1 ⟹ 1) | (n×factorial(n-1));
result ← factorial(5);
✎result;