parser/tests/0022/ast.txt
Saif Eddin Gmati 558ce71563
feat: add test generator (#134)
Co-authored-by: Ryan Chandler <ryangjchandler@gmail.com>
closes https://github.com/ryangjchandler/php-parser-rs/issues/130
2022-11-29 23:19:51 +00:00

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",
},
},
],
},
]