Bend/tests/snapshots/encode_pattern_match__expr.bend.snap

84 lines
1.6 KiB
Plaintext
Raw Normal View History

2023-11-10 22:19:06 +03:00
---
source: tests/golden_tests.rs
input_file: tests/golden_tests/encode_pattern_match/expr.bend
2023-11-10 22:19:06 +03:00
---
Scott
2024-05-10 22:42:32 +03:00
(Expr/Var) = λa λb λ* λ* λ* λ* λ* λ* λ* λ* (b a)
2024-05-10 22:42:32 +03:00
(Expr/Num) = λa λ* λc λ* λ* λ* λ* λ* λ* λ* (c a)
2024-05-10 22:42:32 +03:00
(Expr/App) = λa λb λ* λ* λe λ* λ* λ* λ* λ* λ* (e a b)
2024-05-10 22:42:32 +03:00
(Expr/Fun) = λa λb λ* λ* λ* λf λ* λ* λ* λ* λ* (f a b)
2024-05-10 22:42:32 +03:00
(Expr/If) = λa λb λc λ* λ* λ* λ* λh λ* λ* λ* λ* (h a b c)
2024-03-15 21:58:52 +03:00
2024-05-10 22:42:32 +03:00
(Expr/Let) = λa λb λc λ* λ* λ* λ* λ* λi λ* λ* λ* (i a b c)
2024-03-15 21:58:52 +03:00
2024-05-10 22:42:32 +03:00
(Expr/Dup) = λa λb λc λd λ* λ* λ* λ* λ* λ* λk λ* λ* (k a b c d)
2024-03-18 22:37:56 +03:00
2024-05-10 22:42:32 +03:00
(Expr/Tup) = λa λb λ* λ* λ* λ* λ* λ* λ* λj λ* (j a b)
2024-03-18 22:37:56 +03:00
2024-05-10 22:42:32 +03:00
(Expr/Op2) = λa λb λc λ* λ* λ* λ* λ* λ* λ* λ* λl (l a b c)
2024-05-10 22:42:32 +03:00
(Op/Add) = λa λ* λ* λ* a
2024-05-10 22:42:32 +03:00
(Op/Sub) = λ* λb λ* λ* b
2024-05-10 22:42:32 +03:00
(Op/Mul) = λ* λ* λc λ* c
2024-05-10 22:42:32 +03:00
(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