mirror of
https://github.com/danog/parser.git
synced 2024-12-02 17:38:16 +01:00
017b2e19c3
Signed-off-by: azjezz <azjezz@protonmail.com> Signed-off-by: azjezz <azjezz@protonmail.com>
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: [],
|
|
},
|
|
]
|