mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-09-11 11:56:54 +03:00
26 lines
712 B
Plaintext
26 lines
712 B
Plaintext
---
|
|
source: tests/golden_tests.rs
|
|
input_file: tests/golden_tests/encode_pattern_match/match_num_pred.bend
|
|
---
|
|
Scott
|
|
(pred) = λa switch a { 0: 0; _: λb b; }
|
|
|
|
(pred2) = λa switch a { 0: 0; _: λb switch b { 0: 0; _: λc c; }; }
|
|
|
|
(pred3) = λa switch a { 0: 0; _: λb switch b { 0: 0; _: λc switch c { 0: 0; _: λd d; }; }; }
|
|
|
|
(zero) = λa switch a { 0: 1; _: λb switch b { 0: 0; _: λ* 0; }; }
|
|
|
|
(main) = *
|
|
|
|
NumScott
|
|
(pred) = λa switch a { 0: 0; _: λb b; }
|
|
|
|
(pred2) = λa switch a { 0: 0; _: λb switch b { 0: 0; _: λc c; }; }
|
|
|
|
(pred3) = λa switch a { 0: 0; _: λb switch b { 0: 0; _: λc switch c { 0: 0; _: λd d; }; }; }
|
|
|
|
(zero) = λa switch a { 0: 1; _: λb switch b { 0: 0; _: λ* 0; }; }
|
|
|
|
(main) = *
|