parser/tests/0010/ast.txt

436 lines
11 KiB
Plaintext
Raw Normal View History

[
Expression {
expr: Call {
target: Identifier {
name: "define",
},
args: [
Arg {
name: None,
value: ConstantString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: Infix {
lhs: Int {
i: 1,
},
op: Equals,
rhs: Int {
i: 1,
},
},
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier {
name: "define",
},
args: [
Arg {
name: None,
value: ConstantString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: Infix {
lhs: Int {
i: 1,
},
op: Identical,
rhs: Int {
i: 1,
},
},
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier {
name: "define",
},
args: [
Arg {
name: None,
value: ConstantString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: Infix {
lhs: Int {
i: 1,
},
op: NotEquals,
rhs: Int {
i: 1,
},
},
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier {
name: "define",
},
args: [
Arg {
name: None,
value: ConstantString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: Infix {
lhs: Int {
i: 1,
},
op: NotIdentical,
rhs: Int {
i: 1,
},
},
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier {
name: "define",
},
args: [
Arg {
name: None,
value: ConstantString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: Infix {
lhs: Int {
i: 1,
},
op: Add,
rhs: Int {
i: 2,
},
},
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier {
name: "define",
},
args: [
Arg {
name: None,
value: ConstantString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: Infix {
lhs: Int {
i: 1,
},
op: Sub,
rhs: Int {
i: 2,
},
},
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier {
name: "define",
},
args: [
Arg {
name: None,
value: ConstantString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: Infix {
lhs: Int {
i: 1,
},
op: Div,
rhs: Int {
i: 2,
},
},
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier {
name: "define",
},
args: [
Arg {
name: None,
value: ConstantString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: Infix {
lhs: Int {
i: 1,
},
op: BitwiseXor,
rhs: Int {
i: 2,
},
},
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier {
name: "define",
},
args: [
Arg {
name: None,
value: ConstantString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: Infix {
lhs: Int {
i: 1,
},
op: Mul,
rhs: Int {
i: 2,
},
},
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier {
name: "define",
},
args: [
Arg {
name: None,
value: ConstantString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: Infix {
lhs: Int {
i: 1,
},
op: RightShift,
rhs: Int {
i: 2,
},
},
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier {
name: "define",
},
args: [
Arg {
name: None,
value: ConstantString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: Infix {
lhs: Int {
i: 1,
},
op: LeftShift,
rhs: Int {
i: 2,
},
},
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier {
name: "define",
},
args: [
Arg {
name: None,
value: ConstantString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: Infix {
lhs: Int {
i: 1,
},
op: BitwiseOr,
rhs: Int {
i: 2,
},
},
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier {
name: "define",
},
args: [
Arg {
name: None,
value: ConstantString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: Infix {
lhs: Int {
i: 1,
},
op: BitwiseAnd,
rhs: Int {
i: 2,
},
},
unpack: false,
},
],
},
},
Expression {
expr: Call {
target: Identifier {
name: "define",
},
args: [
Arg {
name: None,
value: ConstantString {
value: "a",
},
unpack: false,
},
Arg {
name: None,
value: BitwiseNot {
value: Int {
i: 2,
},
},
unpack: false,
},
],
},
},
Echo {
values: [
Infix {
lhs: Infix {
lhs: Int {
i: 1,
},
op: Add,
rhs: Infix {
lhs: Infix {
lhs: Int {
i: 2,
},
op: Mul,
rhs: Int {
i: 3,
},
},
op: Div,
rhs: Int {
i: 4,
},
},
},
op: Sub,
rhs: Int {
i: 5,
},
},
],
},
]