mirror of
https://github.com/danog/parser.git
synced 2024-11-26 20:04:57 +01:00
558ce71563
Co-authored-by: Ryan Chandler <ryangjchandler@gmail.com> closes https://github.com/ryangjchandler/php-parser-rs/issues/130
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",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
]
|