parser/tests/0015/ast.txt
Saif Eddin Gmati 017b2e19c3
chore: use new integration test runner instead of assert_ast() (#127)
Signed-off-by: azjezz <azjezz@protonmail.com>

Signed-off-by: azjezz <azjezz@protonmail.com>
2022-11-29 01:33:01 +00:00

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: [],
},
]