mirror of
https://github.com/danog/parser.git
synced 2025-01-06 04:38:22 +01:00
95 lines
3.0 KiB
Plaintext
95 lines
3.0 KiB
Plaintext
[
|
|
Expression {
|
|
expr: InterpolatedString {
|
|
parts: [
|
|
Expr(
|
|
Variable(
|
|
Variable {
|
|
start: (
|
|
1,
|
|
10,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
1,
|
|
13,
|
|
),
|
|
},
|
|
),
|
|
),
|
|
Expr(
|
|
ArrayIndex {
|
|
array: Variable(
|
|
Variable {
|
|
start: (
|
|
1,
|
|
16,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
1,
|
|
19,
|
|
),
|
|
},
|
|
),
|
|
index: Some(
|
|
LiteralInteger {
|
|
i: "0",
|
|
},
|
|
),
|
|
},
|
|
),
|
|
Expr(
|
|
ArrayIndex {
|
|
array: Variable(
|
|
Variable {
|
|
start: (
|
|
1,
|
|
25,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
1,
|
|
28,
|
|
),
|
|
},
|
|
),
|
|
index: Some(
|
|
LiteralString {
|
|
value: "bar",
|
|
},
|
|
),
|
|
},
|
|
),
|
|
Expr(
|
|
DynamicVariable {
|
|
name: Parenthesized {
|
|
start: (
|
|
1,
|
|
38,
|
|
),
|
|
expr: Variable(
|
|
Variable {
|
|
start: (
|
|
1,
|
|
39,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
1,
|
|
43,
|
|
),
|
|
},
|
|
),
|
|
end: (
|
|
1,
|
|
43,
|
|
),
|
|
},
|
|
},
|
|
),
|
|
],
|
|
},
|
|
},
|
|
]
|