mirror of
https://github.com/danog/parser.git
synced 2024-11-27 04:14:55 +01:00
58 lines
1.1 KiB
Plaintext
58 lines
1.1 KiB
Plaintext
|
[
|
||
|
Foreach {
|
||
|
expr: Variable {
|
||
|
name: "a",
|
||
|
},
|
||
|
by_ref: false,
|
||
|
key_var: None,
|
||
|
value_var: Variable {
|
||
|
name: "b",
|
||
|
},
|
||
|
body: [
|
||
|
Echo {
|
||
|
values: [
|
||
|
Variable {
|
||
|
name: "a",
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
While {
|
||
|
condition: Bool {
|
||
|
value: true,
|
||
|
},
|
||
|
body: [
|
||
|
Expression {
|
||
|
expr: Variable {
|
||
|
name: "a",
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
For {
|
||
|
init: Some(
|
||
|
Variable {
|
||
|
name: "a",
|
||
|
},
|
||
|
),
|
||
|
condition: Some(
|
||
|
Variable {
|
||
|
name: "b",
|
||
|
},
|
||
|
),
|
||
|
loop: Some(
|
||
|
Variable {
|
||
|
name: "c",
|
||
|
},
|
||
|
),
|
||
|
then: [
|
||
|
Expression {
|
||
|
expr: Variable {
|
||
|
name: "d",
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
]
|