mirror of
https://github.com/danog/parser.git
synced 2025-01-09 14:18:26 +01:00
54 lines
1.1 KiB
Plaintext
54 lines
1.1 KiB
Plaintext
|
[
|
||
|
Declare {
|
||
|
declares: [
|
||
|
DeclareItem {
|
||
|
key: Identifier {
|
||
|
name: "a",
|
||
|
},
|
||
|
value: Int {
|
||
|
i: 1,
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
body: [
|
||
|
Expression {
|
||
|
expr: Variable {
|
||
|
name: "a",
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
Declare {
|
||
|
declares: [
|
||
|
DeclareItem {
|
||
|
key: Identifier {
|
||
|
name: "b",
|
||
|
},
|
||
|
value: ConstantString {
|
||
|
value: "9",
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
body: [
|
||
|
Expression {
|
||
|
expr: Variable {
|
||
|
name: "a",
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
Declare {
|
||
|
declares: [
|
||
|
DeclareItem {
|
||
|
key: Identifier {
|
||
|
name: "foo",
|
||
|
},
|
||
|
value: Float {
|
||
|
f: 1.42,
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
body: [],
|
||
|
},
|
||
|
]
|