parser/tests/0015/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

54 lines
1.1 KiB
Plaintext

[
Declare {
declares: [
DeclareItem {
key: Identifier {
name: "a",
},
value: LiteralInteger {
i: 1,
},
},
],
body: [
Expression {
expr: Variable {
name: "a",
},
},
],
},
Declare {
declares: [
DeclareItem {
key: Identifier {
name: "b",
},
value: LiteralString {
value: "9",
},
},
],
body: [
Expression {
expr: Variable {
name: "a",
},
},
],
},
Declare {
declares: [
DeclareItem {
key: Identifier {
name: "foo",
},
value: LiteralFloat {
f: 1.42,
},
},
],
body: [],
},
]