mirror of
https://github.com/danog/parser.git
synced 2024-12-13 01:27:29 +01:00
bd2023c3c4
Signed-off-by: azjezz <azjezz@protonmail.com>
580 lines
15 KiB
Plaintext
580 lines
15 KiB
Plaintext
[
|
|
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: Infix {
|
|
lhs: LiteralInteger {
|
|
i: "1",
|
|
},
|
|
op: Equals,
|
|
rhs: 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: Infix {
|
|
lhs: LiteralInteger {
|
|
i: "1",
|
|
},
|
|
op: Identical,
|
|
rhs: 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: Infix {
|
|
lhs: LiteralInteger {
|
|
i: "1",
|
|
},
|
|
op: NotEquals,
|
|
rhs: 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: Infix {
|
|
lhs: LiteralInteger {
|
|
i: "1",
|
|
},
|
|
op: NotIdentical,
|
|
rhs: 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: Infix {
|
|
lhs: LiteralInteger {
|
|
i: "1",
|
|
},
|
|
op: Add,
|
|
rhs: 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: Infix {
|
|
lhs: LiteralInteger {
|
|
i: "1",
|
|
},
|
|
op: Sub,
|
|
rhs: 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: Infix {
|
|
lhs: LiteralInteger {
|
|
i: "1",
|
|
},
|
|
op: Div,
|
|
rhs: 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: Infix {
|
|
lhs: LiteralInteger {
|
|
i: "1",
|
|
},
|
|
op: BitwiseXor,
|
|
rhs: 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: Infix {
|
|
lhs: LiteralInteger {
|
|
i: "1",
|
|
},
|
|
op: Mul,
|
|
rhs: 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: Infix {
|
|
lhs: LiteralInteger {
|
|
i: "1",
|
|
},
|
|
op: RightShift,
|
|
rhs: 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: Infix {
|
|
lhs: LiteralInteger {
|
|
i: "1",
|
|
},
|
|
op: LeftShift,
|
|
rhs: 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: Infix {
|
|
lhs: LiteralInteger {
|
|
i: "1",
|
|
},
|
|
op: BitwiseOr,
|
|
rhs: 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: Infix {
|
|
lhs: LiteralInteger {
|
|
i: "1",
|
|
},
|
|
op: BitwiseAnd,
|
|
rhs: 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: BitwiseNot {
|
|
span: (
|
|
16,
|
|
13,
|
|
),
|
|
value: LiteralInteger {
|
|
i: "2",
|
|
},
|
|
},
|
|
unpack: false,
|
|
},
|
|
],
|
|
},
|
|
},
|
|
Echo {
|
|
values: [
|
|
Infix {
|
|
lhs: Infix {
|
|
lhs: LiteralInteger {
|
|
i: "1",
|
|
},
|
|
op: Add,
|
|
rhs: Infix {
|
|
lhs: Infix {
|
|
lhs: LiteralInteger {
|
|
i: "2",
|
|
},
|
|
op: Mul,
|
|
rhs: LiteralInteger {
|
|
i: "3",
|
|
},
|
|
},
|
|
op: Div,
|
|
rhs: LiteralInteger {
|
|
i: "4",
|
|
},
|
|
},
|
|
},
|
|
op: Sub,
|
|
rhs: LiteralInteger {
|
|
i: "5",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
]
|