2022-11-29 02:33:01 +01:00
|
|
|
[
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "a",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: Infix {
|
2022-11-29 22:25:17 +01:00
|
|
|
lhs: LiteralInteger {
|
2022-11-29 02:33:01 +01:00
|
|
|
i: 2,
|
|
|
|
},
|
|
|
|
op: Pow,
|
2022-11-29 22:25:17 +01:00
|
|
|
rhs: LiteralInteger {
|
2022-11-29 02:33:01 +01:00
|
|
|
i: 2,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "b",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: Ternary {
|
2022-11-29 22:25:17 +01:00
|
|
|
condition: LiteralInteger {
|
2022-11-29 02:33:01 +01:00
|
|
|
i: 1,
|
|
|
|
},
|
|
|
|
then: Some(
|
2022-11-29 22:25:17 +01:00
|
|
|
LiteralInteger {
|
2022-11-29 02:33:01 +01:00
|
|
|
i: 2,
|
|
|
|
},
|
|
|
|
),
|
2022-11-29 22:25:17 +01:00
|
|
|
else: LiteralInteger {
|
2022-11-29 02:33:01 +01:00
|
|
|
i: 3,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "c",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: Ternary {
|
2022-11-29 22:25:17 +01:00
|
|
|
condition: LiteralInteger {
|
2022-11-29 02:33:01 +01:00
|
|
|
i: 1,
|
|
|
|
},
|
|
|
|
then: Some(
|
|
|
|
Ternary {
|
2022-11-29 22:25:17 +01:00
|
|
|
condition: LiteralInteger {
|
2022-11-29 02:33:01 +01:00
|
|
|
i: 2,
|
|
|
|
},
|
|
|
|
then: Some(
|
2022-11-29 22:25:17 +01:00
|
|
|
LiteralInteger {
|
2022-11-29 02:33:01 +01:00
|
|
|
i: 3,
|
|
|
|
},
|
|
|
|
),
|
2022-11-29 22:25:17 +01:00
|
|
|
else: LiteralInteger {
|
2022-11-29 02:33:01 +01:00
|
|
|
i: 4,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
2022-11-29 22:25:17 +01:00
|
|
|
else: LiteralInteger {
|
2022-11-29 02:33:01 +01:00
|
|
|
i: 5,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "d",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: Ternary {
|
2022-11-29 22:25:17 +01:00
|
|
|
condition: LiteralInteger {
|
2022-11-29 02:33:01 +01:00
|
|
|
i: 1,
|
|
|
|
},
|
|
|
|
then: None,
|
|
|
|
else: Ternary {
|
2022-11-29 22:25:17 +01:00
|
|
|
condition: LiteralInteger {
|
2022-11-29 02:33:01 +01:00
|
|
|
i: 2,
|
|
|
|
},
|
|
|
|
then: None,
|
2022-11-29 22:25:17 +01:00
|
|
|
else: LiteralInteger {
|
2022-11-29 02:33:01 +01:00
|
|
|
i: 3,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "e",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: Coalesce {
|
2022-11-29 22:25:17 +01:00
|
|
|
lhs: LiteralInteger {
|
2022-11-29 02:33:01 +01:00
|
|
|
i: 1,
|
|
|
|
},
|
2022-11-29 22:25:17 +01:00
|
|
|
rhs: LiteralInteger {
|
2022-11-29 02:33:01 +01:00
|
|
|
i: 2,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "f",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: Coalesce {
|
2022-11-29 22:25:17 +01:00
|
|
|
lhs: LiteralInteger {
|
2022-11-29 02:33:01 +01:00
|
|
|
i: 1,
|
|
|
|
},
|
|
|
|
rhs: Coalesce {
|
2022-11-29 22:25:17 +01:00
|
|
|
lhs: LiteralInteger {
|
2022-11-29 02:33:01 +01:00
|
|
|
i: 2,
|
|
|
|
},
|
2022-11-29 22:25:17 +01:00
|
|
|
rhs: LiteralInteger {
|
2022-11-29 02:33:01 +01:00
|
|
|
i: 3,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|