parser/tests/0197/ast.txt

51 lines
1.3 KiB
Plaintext
Raw Normal View History

[
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",
},
default: Some(
DefaultMatchArm {
body: Null,
},
),
arms: [
MatchArm {
conditions: [
LiteralInteger {
i: 1,
},
LiteralInteger {
i: 2,
},
LiteralInteger {
i: 3,
},
LiteralInteger {
i: 4,
},
],
body: Null,
},
],
},
},
},
]