mirror of
https://github.com/danog/parser.git
synced 2024-12-04 18:38:11 +01:00
479f51913c
Signed-off-by: azjezz <azjezz@protonmail.com>
138 lines
3.2 KiB
Plaintext
138 lines
3.2 KiB
Plaintext
[
|
|
Foreach {
|
|
expr: Variable(
|
|
Variable {
|
|
start: (
|
|
3,
|
|
10,
|
|
),
|
|
name: "a",
|
|
end: (
|
|
3,
|
|
13,
|
|
),
|
|
},
|
|
),
|
|
by_ref: false,
|
|
key_var: None,
|
|
value_var: Variable(
|
|
Variable {
|
|
start: (
|
|
3,
|
|
16,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
3,
|
|
18,
|
|
),
|
|
},
|
|
),
|
|
body: [
|
|
Echo {
|
|
values: [
|
|
Variable(
|
|
Variable {
|
|
start: (
|
|
4,
|
|
10,
|
|
),
|
|
name: "a",
|
|
end: (
|
|
4,
|
|
12,
|
|
),
|
|
},
|
|
),
|
|
],
|
|
},
|
|
],
|
|
},
|
|
While {
|
|
condition: Bool {
|
|
value: true,
|
|
},
|
|
body: [
|
|
Expression {
|
|
expr: Variable(
|
|
Variable {
|
|
start: (
|
|
8,
|
|
5,
|
|
),
|
|
name: "a",
|
|
end: (
|
|
8,
|
|
7,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
For {
|
|
init: [
|
|
Variable(
|
|
Variable {
|
|
start: (
|
|
11,
|
|
6,
|
|
),
|
|
name: "a",
|
|
end: (
|
|
11,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
],
|
|
condition: [
|
|
Variable(
|
|
Variable {
|
|
start: (
|
|
11,
|
|
10,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
11,
|
|
12,
|
|
),
|
|
},
|
|
),
|
|
],
|
|
loop: [
|
|
Variable(
|
|
Variable {
|
|
start: (
|
|
11,
|
|
14,
|
|
),
|
|
name: "c",
|
|
end: (
|
|
11,
|
|
16,
|
|
),
|
|
},
|
|
),
|
|
],
|
|
then: [
|
|
Expression {
|
|
expr: Variable(
|
|
Variable {
|
|
start: (
|
|
12,
|
|
5,
|
|
),
|
|
name: "d",
|
|
end: (
|
|
12,
|
|
7,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
]
|