parser/tests/0018/ast.txt
Saif Eddin Gmati 0e04f157f7
chore: consistent naming (#135)
Signed-off-by: azjezz <azjezz@protonmail.com>

Signed-off-by: azjezz <azjezz@protonmail.com>
2022-11-29 21:25:17 +00:00

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