mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-09-11 11:56:54 +03:00
84 lines
1.6 KiB
Plaintext
84 lines
1.6 KiB
Plaintext
---
|
|
source: tests/golden_tests.rs
|
|
input_file: tests/golden_tests/encode_pattern_match/expr.bend
|
|
---
|
|
Scott
|
|
(Expr/Var) = λa λb λ* λ* λ* λ* λ* λ* λ* λ* (b a)
|
|
|
|
(Expr/Num) = λa λ* λc λ* λ* λ* λ* λ* λ* λ* (c a)
|
|
|
|
(Expr/App) = λa λb λ* λ* λe λ* λ* λ* λ* λ* λ* (e a b)
|
|
|
|
(Expr/Fun) = λa λb λ* λ* λ* λf λ* λ* λ* λ* λ* (f a b)
|
|
|
|
(Expr/If) = λa λb λc λ* λ* λ* λ* λh λ* λ* λ* λ* (h a b c)
|
|
|
|
(Expr/Let) = λa λb λc λ* λ* λ* λ* λ* λi λ* λ* λ* (i a b c)
|
|
|
|
(Expr/Dup) = λa λb λc λd λ* λ* λ* λ* λ* λ* λk λ* λ* (k a b c d)
|
|
|
|
(Expr/Tup) = λa λb λ* λ* λ* λ* λ* λ* λ* λj λ* (j a b)
|
|
|
|
(Expr/Op2) = λa λb λc λ* λ* λ* λ* λ* λ* λ* λ* λl (l a b c)
|
|
|
|
(Op/Add) = λa λ* λ* λ* a
|
|
|
|
(Op/Sub) = λ* λb λ* λ* b
|
|
|
|
(Op/Mul) = λ* λ* λc λ* c
|
|
|
|
(Op/Div) = λ* λ* λ* λd d
|
|
|
|
NumScott
|
|
(Expr/Var) = λa λb (b Expr/Var/tag a)
|
|
|
|
(Expr/Num) = λa λb (b Expr/Num/tag a)
|
|
|
|
(Expr/App) = λa λb λc (c Expr/App/tag a b)
|
|
|
|
(Expr/Fun) = λa λb λc (c Expr/Fun/tag a b)
|
|
|
|
(Expr/If) = λa λb λc λd (d Expr/If/tag a b c)
|
|
|
|
(Expr/Let) = λa λb λc λd (d Expr/Let/tag a b c)
|
|
|
|
(Expr/Dup) = λa λb λc λd λe (e Expr/Dup/tag a b c d)
|
|
|
|
(Expr/Tup) = λa λb λc (c Expr/Tup/tag a b)
|
|
|
|
(Expr/Op2) = λa λb λc λd (d Expr/Op2/tag a b c)
|
|
|
|
(Op/Add) = λa (a Op/Add/tag)
|
|
|
|
(Op/Sub) = λa (a Op/Sub/tag)
|
|
|
|
(Op/Mul) = λa (a Op/Mul/tag)
|
|
|
|
(Op/Div) = λa (a Op/Div/tag)
|
|
|
|
(Expr/Var/tag) = 0
|
|
|
|
(Expr/Num/tag) = 1
|
|
|
|
(Expr/App/tag) = 2
|
|
|
|
(Expr/Fun/tag) = 3
|
|
|
|
(Expr/If/tag) = 4
|
|
|
|
(Expr/Let/tag) = 5
|
|
|
|
(Expr/Dup/tag) = 6
|
|
|
|
(Expr/Tup/tag) = 7
|
|
|
|
(Expr/Op2/tag) = 8
|
|
|
|
(Op/Add/tag) = 0
|
|
|
|
(Op/Sub/tag) = 1
|
|
|
|
(Op/Mul/tag) = 2
|
|
|
|
(Op/Div/tag) = 3
|