parser/tests/0018/ast.txt

65 lines
1.3 KiB
Plaintext
Raw Normal View History

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