mirror of
https://github.com/danog/parser.git
synced 2025-01-08 13:49:17 +01:00
98 lines
2.3 KiB
Plaintext
98 lines
2.3 KiB
Plaintext
[
|
|
Declare {
|
|
declares: [
|
|
DeclareItem {
|
|
key: Identifier {
|
|
start: (
|
|
3,
|
|
9,
|
|
),
|
|
name: "a",
|
|
end: (
|
|
3,
|
|
10,
|
|
),
|
|
},
|
|
value: LiteralInteger {
|
|
i: "1",
|
|
},
|
|
},
|
|
],
|
|
body: [
|
|
Expression {
|
|
expr: Variable(
|
|
Variable {
|
|
start: (
|
|
4,
|
|
5,
|
|
),
|
|
name: "a",
|
|
end: (
|
|
4,
|
|
7,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
Declare {
|
|
declares: [
|
|
DeclareItem {
|
|
key: Identifier {
|
|
start: (
|
|
7,
|
|
9,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
7,
|
|
10,
|
|
),
|
|
},
|
|
value: LiteralString {
|
|
value: "9",
|
|
},
|
|
},
|
|
],
|
|
body: [
|
|
Expression {
|
|
expr: Variable(
|
|
Variable {
|
|
start: (
|
|
8,
|
|
5,
|
|
),
|
|
name: "a",
|
|
end: (
|
|
8,
|
|
7,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
Declare {
|
|
declares: [
|
|
DeclareItem {
|
|
key: Identifier {
|
|
start: (
|
|
11,
|
|
9,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
11,
|
|
12,
|
|
),
|
|
},
|
|
value: LiteralFloat {
|
|
f: "1.42",
|
|
},
|
|
},
|
|
],
|
|
body: [],
|
|
},
|
|
]
|