2022-11-30 00:19:51 +01:00
|
|
|
[
|
|
|
|
Foreach {
|
2022-12-05 17:53:41 +01:00
|
|
|
expr: Variable(
|
|
|
|
Variable {
|
|
|
|
start: (
|
|
|
|
3,
|
|
|
|
10,
|
|
|
|
),
|
|
|
|
name: "a",
|
|
|
|
end: (
|
|
|
|
3,
|
|
|
|
13,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
2022-11-30 00:19:51 +01:00
|
|
|
by_ref: true,
|
|
|
|
key_var: None,
|
2022-12-05 17:53:41 +01:00
|
|
|
value_var: Variable(
|
|
|
|
Variable {
|
|
|
|
start: (
|
|
|
|
3,
|
|
|
|
17,
|
|
|
|
),
|
|
|
|
name: "b",
|
|
|
|
end: (
|
|
|
|
3,
|
|
|
|
19,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
2022-11-30 00:19:51 +01:00
|
|
|
body: [],
|
|
|
|
},
|
|
|
|
Foreach {
|
2022-12-05 17:53:41 +01:00
|
|
|
expr: Variable(
|
|
|
|
Variable {
|
|
|
|
start: (
|
|
|
|
5,
|
|
|
|
10,
|
|
|
|
),
|
|
|
|
name: "a",
|
|
|
|
end: (
|
|
|
|
5,
|
|
|
|
13,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
2022-11-30 00:19:51 +01:00
|
|
|
by_ref: true,
|
|
|
|
key_var: Some(
|
2022-12-05 17:53:41 +01:00
|
|
|
Variable(
|
|
|
|
Variable {
|
|
|
|
start: (
|
|
|
|
5,
|
|
|
|
16,
|
|
|
|
),
|
|
|
|
name: "b",
|
|
|
|
end: (
|
|
|
|
5,
|
|
|
|
19,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
value_var: Variable(
|
2022-11-30 00:19:51 +01:00
|
|
|
Variable {
|
2022-12-05 17:53:41 +01:00
|
|
|
start: (
|
|
|
|
5,
|
|
|
|
23,
|
|
|
|
),
|
|
|
|
name: "c",
|
|
|
|
end: (
|
|
|
|
5,
|
|
|
|
25,
|
|
|
|
),
|
2022-11-30 00:19:51 +01:00
|
|
|
},
|
|
|
|
),
|
|
|
|
body: [],
|
|
|
|
},
|
|
|
|
Switch {
|
2022-12-05 17:53:41 +01:00
|
|
|
condition: Variable(
|
|
|
|
Variable {
|
|
|
|
start: (
|
|
|
|
7,
|
|
|
|
9,
|
|
|
|
),
|
|
|
|
name: "a",
|
|
|
|
end: (
|
|
|
|
7,
|
|
|
|
11,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
2022-11-30 00:19:51 +01:00
|
|
|
cases: [
|
|
|
|
Case {
|
|
|
|
condition: Some(
|
|
|
|
LiteralInteger {
|
2022-12-06 19:13:45 +01:00
|
|
|
i: "0",
|
2022-11-30 00:19:51 +01:00
|
|
|
},
|
|
|
|
),
|
|
|
|
body: [
|
|
|
|
Break {
|
|
|
|
num: None,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
Case {
|
|
|
|
condition: Some(
|
|
|
|
LiteralInteger {
|
2022-12-06 19:13:45 +01:00
|
|
|
i: "1",
|
2022-11-30 00:19:51 +01:00
|
|
|
},
|
|
|
|
),
|
|
|
|
body: [],
|
|
|
|
},
|
|
|
|
Case {
|
|
|
|
condition: None,
|
|
|
|
body: [],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
Foreach {
|
2022-12-05 17:53:41 +01:00
|
|
|
expr: Variable(
|
|
|
|
Variable {
|
|
|
|
start: (
|
|
|
|
14,
|
|
|
|
10,
|
|
|
|
),
|
|
|
|
name: "foo",
|
|
|
|
end: (
|
|
|
|
14,
|
|
|
|
15,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
2022-11-30 00:19:51 +01:00
|
|
|
by_ref: false,
|
|
|
|
key_var: None,
|
|
|
|
value_var: Array {
|
|
|
|
items: [
|
|
|
|
ArrayItem {
|
|
|
|
key: None,
|
2022-12-05 17:53:41 +01:00
|
|
|
value: Variable(
|
|
|
|
Variable {
|
|
|
|
start: (
|
|
|
|
14,
|
|
|
|
19,
|
|
|
|
),
|
|
|
|
name: "baz",
|
|
|
|
end: (
|
|
|
|
14,
|
|
|
|
23,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
2022-11-30 00:19:51 +01:00
|
|
|
unpack: false,
|
2022-12-05 14:55:35 +01:00
|
|
|
by_ref: false,
|
2022-11-30 00:19:51 +01:00
|
|
|
},
|
|
|
|
ArrayItem {
|
|
|
|
key: None,
|
2022-12-05 17:53:41 +01:00
|
|
|
value: Variable(
|
|
|
|
Variable {
|
|
|
|
start: (
|
|
|
|
14,
|
|
|
|
25,
|
|
|
|
),
|
|
|
|
name: "car",
|
|
|
|
end: (
|
|
|
|
14,
|
|
|
|
29,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
2022-11-30 00:19:51 +01:00
|
|
|
unpack: false,
|
2022-12-05 14:55:35 +01:00
|
|
|
by_ref: false,
|
2022-11-30 00:19:51 +01:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
body: [],
|
|
|
|
},
|
|
|
|
Foreach {
|
2022-12-05 17:53:41 +01:00
|
|
|
expr: Variable(
|
|
|
|
Variable {
|
|
|
|
start: (
|
|
|
|
16,
|
|
|
|
10,
|
|
|
|
),
|
|
|
|
name: "foo",
|
|
|
|
end: (
|
|
|
|
16,
|
|
|
|
15,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
2022-11-30 00:19:51 +01:00
|
|
|
by_ref: false,
|
|
|
|
key_var: Some(
|
2022-12-05 17:53:41 +01:00
|
|
|
Variable(
|
|
|
|
Variable {
|
|
|
|
start: (
|
|
|
|
16,
|
|
|
|
18,
|
|
|
|
),
|
|
|
|
name: "bar",
|
|
|
|
end: (
|
|
|
|
16,
|
|
|
|
23,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
value_var: Variable(
|
2022-11-30 00:19:51 +01:00
|
|
|
Variable {
|
2022-12-05 17:53:41 +01:00
|
|
|
start: (
|
|
|
|
16,
|
|
|
|
26,
|
|
|
|
),
|
|
|
|
name: "baz",
|
|
|
|
end: (
|
|
|
|
16,
|
|
|
|
30,
|
|
|
|
),
|
2022-11-30 00:19:51 +01:00
|
|
|
},
|
|
|
|
),
|
|
|
|
body: [],
|
|
|
|
},
|
|
|
|
Foreach {
|
2022-12-05 17:53:41 +01:00
|
|
|
expr: Variable(
|
|
|
|
Variable {
|
|
|
|
start: (
|
|
|
|
18,
|
|
|
|
10,
|
|
|
|
),
|
|
|
|
name: "foo",
|
|
|
|
end: (
|
|
|
|
18,
|
|
|
|
15,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
2022-11-30 00:19:51 +01:00
|
|
|
by_ref: false,
|
|
|
|
key_var: None,
|
2022-12-05 17:53:41 +01:00
|
|
|
value_var: Variable(
|
|
|
|
Variable {
|
|
|
|
start: (
|
|
|
|
18,
|
|
|
|
18,
|
|
|
|
),
|
|
|
|
name: "bar",
|
|
|
|
end: (
|
|
|
|
18,
|
|
|
|
22,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
2022-11-30 00:19:51 +01:00
|
|
|
body: [],
|
|
|
|
},
|
|
|
|
]
|