parser/tests/0194/ast.txt
2022-12-04 08:56:53 +00:00

48 lines
1.2 KiB
Plaintext

[
Expression {
expr: Infix {
lhs: Variable {
name: "a",
},
op: Assign,
rhs: LiteralInteger {
i: 4,
},
},
},
Expression {
expr: Infix {
lhs: Variable {
name: "b",
},
op: Assign,
rhs: Match {
condition: Variable {
name: "a",
},
arms: [
MatchArm {
conditions: Some(
[
LiteralInteger {
i: 1,
},
LiteralInteger {
i: 2,
},
LiteralInteger {
i: 3,
},
LiteralInteger {
i: 4,
},
],
),
body: Null,
},
],
},
},
},
]