- 03: handler clause uses the canonical arrow (↯e ⟹ …, was ↯e ⇒ …) - 05: give sin/cos a real placeholder body (⊥) — a comment-only body is empty and cannot parse - Run parseExamples on the test runtime classpath; ParseExamples lives in the test source set and was never found on main.runtimeClasspath ./gradlew parseExamples now reports 10/10 PASS
9 lines
No EOL
281 B
Text
9 lines
No EOL
281 B
Text
-- Module definition example
|
||
𝓜 Mathematics ⇒ {
|
||
π ≜ 3.14159;
|
||
sin ≜ λx∈ℝ: ⊥ {- implementation deferred until MPL executes -};
|
||
cos ≜ λx∈ℝ: ⊥ {- implementation deferred until MPL executes -}
|
||
};
|
||
|
||
angle ← π/4;
|
||
result ← Mathematics‧sin(angle); |