mirror of
https://github.com/danog/parser.git
synced 2024-12-12 17:17:23 +01:00
479f51913c
Signed-off-by: azjezz <azjezz@protonmail.com>
82 lines
2.0 KiB
Plaintext
82 lines
2.0 KiB
Plaintext
[
|
|
Expression {
|
|
expr: ArrayIndex {
|
|
array: Variable(
|
|
Variable {
|
|
start: (
|
|
3,
|
|
1,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
3,
|
|
5,
|
|
),
|
|
},
|
|
),
|
|
index: Some(
|
|
LiteralString {
|
|
value: "bar",
|
|
},
|
|
),
|
|
},
|
|
},
|
|
Expression {
|
|
expr: ArrayIndex {
|
|
array: ArrayIndex {
|
|
array: Variable(
|
|
Variable {
|
|
start: (
|
|
5,
|
|
1,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
5,
|
|
5,
|
|
),
|
|
},
|
|
),
|
|
index: Some(
|
|
LiteralString {
|
|
value: "bar",
|
|
},
|
|
),
|
|
},
|
|
index: Some(
|
|
LiteralString {
|
|
value: "baz",
|
|
},
|
|
),
|
|
},
|
|
},
|
|
Expression {
|
|
expr: Infix {
|
|
lhs: ArrayIndex {
|
|
array: Variable(
|
|
Variable {
|
|
start: (
|
|
7,
|
|
1,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
7,
|
|
5,
|
|
),
|
|
},
|
|
),
|
|
index: Some(
|
|
LiteralString {
|
|
value: "bar",
|
|
},
|
|
),
|
|
},
|
|
op: Assign,
|
|
rhs: LiteralString {
|
|
value: "baz",
|
|
},
|
|
},
|
|
},
|
|
]
|