mirror of
https://github.com/danog/parser.git
synced 2024-12-11 16:49:47 +01:00
0e04f157f7
Signed-off-by: azjezz <azjezz@protonmail.com> Signed-off-by: azjezz <azjezz@protonmail.com>
65 lines
1.3 KiB
Plaintext
65 lines
1.3 KiB
Plaintext
[
|
|
Function {
|
|
name: Identifier {
|
|
name: "a",
|
|
},
|
|
params: [],
|
|
body: [
|
|
Echo {
|
|
values: [
|
|
LiteralString {
|
|
value: "looping..\n",
|
|
},
|
|
],
|
|
},
|
|
Return {
|
|
value: Some(
|
|
Null,
|
|
),
|
|
},
|
|
],
|
|
return_type: Some(
|
|
Null,
|
|
),
|
|
by_ref: false,
|
|
},
|
|
Expression {
|
|
expr: Infix {
|
|
lhs: Variable {
|
|
name: "bar",
|
|
},
|
|
op: Assign,
|
|
rhs: Call {
|
|
target: Identifier {
|
|
name: "a",
|
|
},
|
|
args: [
|
|
Arg {
|
|
name: None,
|
|
value: VariadicPlaceholder,
|
|
unpack: false,
|
|
},
|
|
],
|
|
},
|
|
},
|
|
},
|
|
Label {
|
|
label: Identifier {
|
|
name: "foo",
|
|
},
|
|
},
|
|
Expression {
|
|
expr: Call {
|
|
target: Variable {
|
|
name: "bar",
|
|
},
|
|
args: [],
|
|
},
|
|
},
|
|
Goto {
|
|
label: Identifier {
|
|
name: "foo",
|
|
},
|
|
},
|
|
]
|