2022-11-29 02:33:01 +01:00
|
|
|
[
|
2022-12-06 09:33:29 +01:00
|
|
|
Function(
|
|
|
|
Function {
|
2022-12-05 17:53:41 +01:00
|
|
|
start: (
|
|
|
|
3,
|
2022-12-06 09:33:29 +01:00
|
|
|
1,
|
2022-12-05 17:53:41 +01:00
|
|
|
),
|
|
|
|
end: (
|
2022-12-06 09:51:13 +01:00
|
|
|
7,
|
2022-12-06 09:33:29 +01:00
|
|
|
1,
|
2022-12-05 17:53:41 +01:00
|
|
|
),
|
2022-12-06 09:33:29 +01:00
|
|
|
name: Identifier {
|
|
|
|
start: (
|
|
|
|
3,
|
|
|
|
10,
|
|
|
|
),
|
|
|
|
name: "a",
|
|
|
|
end: (
|
|
|
|
3,
|
|
|
|
11,
|
|
|
|
),
|
2022-11-29 02:33:01 +01:00
|
|
|
},
|
2022-12-06 09:33:29 +01:00
|
|
|
attributes: [],
|
|
|
|
parameters: FunctionParameterList {
|
|
|
|
start: (
|
|
|
|
3,
|
|
|
|
11,
|
|
|
|
),
|
|
|
|
end: (
|
|
|
|
3,
|
|
|
|
13,
|
2022-11-29 02:33:01 +01:00
|
|
|
),
|
2022-12-06 09:33:29 +01:00
|
|
|
members: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
},
|
2022-12-06 09:33:29 +01:00
|
|
|
return_type: Some(
|
|
|
|
Null,
|
|
|
|
),
|
|
|
|
by_ref: false,
|
|
|
|
body: [
|
|
|
|
Echo {
|
|
|
|
values: [
|
|
|
|
LiteralString {
|
|
|
|
value: "looping..\n",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
Return {
|
|
|
|
value: Some(
|
|
|
|
Null,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
),
|
2022-11-29 02:33:01 +01:00
|
|
|
Expression {
|
2022-12-09 23:34:29 +01:00
|
|
|
expr: AssignmentOperation(
|
|
|
|
Assign {
|
|
|
|
left: Variable(
|
|
|
|
Variable {
|
2022-12-05 17:53:41 +01:00
|
|
|
start: (
|
|
|
|
9,
|
2022-12-09 23:34:29 +01:00
|
|
|
1,
|
2022-12-05 17:53:41 +01:00
|
|
|
),
|
2022-12-09 23:34:29 +01:00
|
|
|
name: "bar",
|
2022-12-05 17:53:41 +01:00
|
|
|
end: (
|
|
|
|
9,
|
2022-12-09 23:34:29 +01:00
|
|
|
6,
|
2022-12-05 17:53:41 +01:00
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
2022-12-09 23:34:29 +01:00
|
|
|
span: (
|
|
|
|
9,
|
|
|
|
6,
|
|
|
|
),
|
|
|
|
right: Call {
|
|
|
|
target: Identifier(
|
|
|
|
Identifier {
|
|
|
|
start: (
|
|
|
|
9,
|
|
|
|
8,
|
|
|
|
),
|
|
|
|
name: "a",
|
|
|
|
end: (
|
|
|
|
9,
|
|
|
|
9,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
args: [
|
|
|
|
Arg {
|
|
|
|
name: None,
|
|
|
|
value: VariadicPlaceholder,
|
|
|
|
unpack: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2022-11-29 02:33:01 +01:00
|
|
|
},
|
2022-12-09 23:34:29 +01:00
|
|
|
),
|
2022-11-29 02:33:01 +01:00
|
|
|
},
|
|
|
|
Label {
|
|
|
|
label: Identifier {
|
2022-12-05 17:53:41 +01:00
|
|
|
start: (
|
|
|
|
11,
|
|
|
|
1,
|
|
|
|
),
|
2022-11-29 02:33:01 +01:00
|
|
|
name: "foo",
|
2022-12-05 17:53:41 +01:00
|
|
|
end: (
|
|
|
|
11,
|
|
|
|
4,
|
|
|
|
),
|
2022-11-29 02:33:01 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
Expression {
|
|
|
|
expr: Call {
|
2022-12-05 17:53:41 +01:00
|
|
|
target: Variable(
|
|
|
|
Variable {
|
|
|
|
start: (
|
|
|
|
12,
|
|
|
|
5,
|
|
|
|
),
|
|
|
|
name: "bar",
|
|
|
|
end: (
|
|
|
|
12,
|
|
|
|
9,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
2022-11-29 02:33:01 +01:00
|
|
|
args: [],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Goto {
|
|
|
|
label: Identifier {
|
2022-12-05 17:53:41 +01:00
|
|
|
start: (
|
|
|
|
13,
|
|
|
|
10,
|
|
|
|
),
|
2022-11-29 02:33:01 +01:00
|
|
|
name: "foo",
|
2022-12-05 17:53:41 +01:00
|
|
|
end: (
|
|
|
|
13,
|
|
|
|
13,
|
|
|
|
),
|
2022-11-29 02:33:01 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|