parser/tests/fixtures/0010/ast.txt

667 lines
19 KiB
Plaintext
Raw Normal View History

[
Expression {
expr: Call {
target: Identifier(
Identifier {
start: (
3,
1,
),
name: "define",
end: (
3,
7,
),
},
),
args: [
Arg {
name: None,
value: LiteralString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: ComparisonOperation(
Equal {
left: LiteralInteger {
i: "1",
},
span: (
3,
15,
),
right: LiteralInteger {
i: "1",
},
},
),
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier(
Identifier {
start: (
4,
1,
),
name: "define",
end: (
4,
7,
),
},
),
args: [
Arg {
name: None,
value: LiteralString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: ComparisonOperation(
Identical {
left: LiteralInteger {
i: "1",
},
span: (
4,
15,
),
right: LiteralInteger {
i: "1",
},
},
),
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier(
Identifier {
start: (
5,
1,
),
name: "define",
end: (
5,
7,
),
},
),
args: [
Arg {
name: None,
value: LiteralString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: ComparisonOperation(
NotEqual {
left: LiteralInteger {
i: "1",
},
span: (
5,
15,
),
right: LiteralInteger {
i: "1",
},
},
),
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier(
Identifier {
start: (
6,
1,
),
name: "define",
end: (
6,
7,
),
},
),
args: [
Arg {
name: None,
value: LiteralString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: ComparisonOperation(
NotIdentical {
left: LiteralInteger {
i: "1",
},
span: (
6,
15,
),
right: LiteralInteger {
i: "1",
},
},
),
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier(
Identifier {
start: (
7,
1,
),
name: "define",
end: (
7,
7,
),
},
),
args: [
Arg {
name: None,
value: LiteralString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: ArithmeticOperation(
Addition {
left: LiteralInteger {
i: "1",
},
span: (
7,
15,
),
right: LiteralInteger {
i: "2",
},
},
),
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier(
Identifier {
start: (
8,
1,
),
name: "define",
end: (
8,
7,
),
},
),
args: [
Arg {
name: None,
value: LiteralString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: ArithmeticOperation(
Subtraction {
left: LiteralInteger {
i: "1",
},
span: (
8,
15,
),
right: LiteralInteger {
i: "2",
},
},
),
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier(
Identifier {
start: (
9,
1,
),
name: "define",
end: (
9,
7,
),
},
),
args: [
Arg {
name: None,
value: LiteralString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: ArithmeticOperation(
Division {
left: LiteralInteger {
i: "1",
},
span: (
9,
15,
),
right: LiteralInteger {
i: "2",
},
},
),
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier(
Identifier {
start: (
10,
1,
),
name: "define",
end: (
10,
7,
),
},
),
args: [
Arg {
name: None,
value: LiteralString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: BitwiseOperation(
Xor {
left: LiteralInteger {
i: "1",
},
span: (
10,
15,
),
right: LiteralInteger {
i: "2",
},
},
),
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier(
Identifier {
start: (
11,
1,
),
name: "define",
end: (
11,
7,
),
},
),
args: [
Arg {
name: None,
value: LiteralString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: ArithmeticOperation(
Multiplication {
left: LiteralInteger {
i: "1",
},
span: (
11,
15,
),
right: LiteralInteger {
i: "2",
},
},
),
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier(
Identifier {
start: (
12,
1,
),
name: "define",
end: (
12,
7,
),
},
),
args: [
Arg {
name: None,
value: LiteralString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: BitwiseOperation(
RightShift {
left: LiteralInteger {
i: "1",
},
span: (
12,
15,
),
right: LiteralInteger {
i: "2",
},
},
),
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier(
Identifier {
start: (
13,
1,
),
name: "define",
end: (
13,
7,
),
},
),
args: [
Arg {
name: None,
value: LiteralString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: BitwiseOperation(
LeftShift {
left: LiteralInteger {
i: "1",
},
span: (
13,
15,
),
right: LiteralInteger {
i: "2",
},
},
),
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier(
Identifier {
start: (
14,
1,
),
name: "define",
end: (
14,
7,
),
},
),
args: [
Arg {
name: None,
value: LiteralString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: BitwiseOperation(
Or {
left: LiteralInteger {
i: "1",
},
span: (
14,
15,
),
right: LiteralInteger {
i: "2",
},
},
),
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier(
Identifier {
start: (
15,
1,
),
name: "define",
end: (
15,
7,
),
},
),
args: [
Arg {
name: None,
value: LiteralString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: BitwiseOperation(
And {
left: LiteralInteger {
i: "1",
},
span: (
15,
15,
),
right: LiteralInteger {
i: "2",
},
},
),
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier(
Identifier {
start: (
16,
1,
),
name: "define",
end: (
16,
7,
),
},
),
args: [
Arg {
name: None,
value: LiteralString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: BitwiseOperation(
Not {
span: (
16,
13,
),
right: LiteralInteger {
i: "2",
},
},
),
unpack: false,
},
],
},
},
Echo {
values: [
ArithmeticOperation(
Subtraction {
left: ArithmeticOperation(
Addition {
left: LiteralInteger {
i: "1",
},
span: (
18,
8,
),
right: ArithmeticOperation(
Division {
left: ArithmeticOperation(
Multiplication {
left: LiteralInteger {
i: "2",
},
span: (
18,
12,
),
right: LiteralInteger {
i: "3",
},
},
),
span: (
18,
16,
),
right: LiteralInteger {
i: "4",
},
},
),
},
),
span: (
18,
20,
),
right: LiteralInteger {
i: "5",
},
},
),
],
},
]