parser/tests/0018/ast.txt
Saif Eddin Gmati 017b2e19c3
chore: use new integration test runner instead of assert_ast() (#127)
Signed-off-by: azjezz <azjezz@protonmail.com>

Signed-off-by: azjezz <azjezz@protonmail.com>
2022-11-29 01:33:01 +00:00

65 lines
1.3 KiB
Plaintext

[
Function {
name: Identifier {
name: "a",
},
params: [],
body: [
Echo {
values: [
ConstantString {
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",
},
},
]