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