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

52 lines
1.1 KiB
Plaintext

[
Expression {
expr: ArrayIndex {
array: Variable {
name: "foo",
},
index: Some(
LiteralString {
value: "bar",
},
),
},
},
Expression {
expr: ArrayIndex {
array: ArrayIndex {
array: Variable {
name: "foo",
},
index: Some(
LiteralString {
value: "bar",
},
),
},
index: Some(
LiteralString {
value: "baz",
},
),
},
},
Expression {
expr: Infix {
lhs: ArrayIndex {
array: Variable {
name: "foo",
},
index: Some(
LiteralString {
value: "bar",
},
),
},
op: Assign,
rhs: LiteralString {
value: "baz",
},
},
},
]