parser/tests/0010/ast.txt
Saif Eddin Gmati 017b2e19c3
chore: use new integration test runner instead of assert_ast() (#127)
Signed-off-by: azjezz <azjezz@protonmail.com>

Signed-off-by: azjezz <azjezz@protonmail.com>
2022-11-29 01:33:01 +00:00

436 lines
11 KiB
Plaintext

[
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,
},
},
],
},
]