forked from M-Labs/nac3
119 lines
3.9 KiB
Plaintext
119 lines
3.9 KiB
Plaintext
---
|
|
source: nac3parser/src/parser.rs
|
|
assertion_line: 132
|
|
expression: "parse_program(&source, Default::default()).unwrap()"
|
|
|
|
---
|
|
[
|
|
Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 1,
|
|
file: FileName(
|
|
"unknown",
|
|
),
|
|
},
|
|
custom: (),
|
|
node: Assign {
|
|
targets: [
|
|
Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 1,
|
|
file: FileName(
|
|
"unknown",
|
|
),
|
|
},
|
|
custom: (),
|
|
node: Tuple {
|
|
elts: [
|
|
Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 1,
|
|
file: FileName(
|
|
"unknown",
|
|
),
|
|
},
|
|
custom: (),
|
|
node: Name {
|
|
id: "a",
|
|
ctx: Load,
|
|
},
|
|
},
|
|
Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 4,
|
|
file: FileName(
|
|
"unknown",
|
|
),
|
|
},
|
|
custom: (),
|
|
node: Name {
|
|
id: "b",
|
|
ctx: Load,
|
|
},
|
|
},
|
|
],
|
|
ctx: Load,
|
|
},
|
|
},
|
|
],
|
|
value: Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 8,
|
|
file: FileName(
|
|
"unknown",
|
|
),
|
|
},
|
|
custom: (),
|
|
node: Tuple {
|
|
elts: [
|
|
Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 8,
|
|
file: FileName(
|
|
"unknown",
|
|
),
|
|
},
|
|
custom: (),
|
|
node: Constant {
|
|
value: Int(
|
|
Some(
|
|
4,
|
|
),
|
|
),
|
|
kind: None,
|
|
},
|
|
},
|
|
Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 11,
|
|
file: FileName(
|
|
"unknown",
|
|
),
|
|
},
|
|
custom: (),
|
|
node: Constant {
|
|
value: Int(
|
|
Some(
|
|
5,
|
|
),
|
|
),
|
|
kind: None,
|
|
},
|
|
},
|
|
],
|
|
ctx: Load,
|
|
},
|
|
},
|
|
type_comment: None,
|
|
config_comment: [],
|
|
},
|
|
},
|
|
]
|