parser/tests/0017/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

68 lines
1.4 KiB
Plaintext

[
Expression {
expr: Infix {
lhs: Variable {
name: "a",
},
op: Assign,
rhs: New {
target: Identifier {
name: "Foo",
},
args: [],
},
},
},
Expression {
expr: Infix {
lhs: Variable {
name: "b",
},
op: Assign,
rhs: UnaryPlus {
value: Int {
i: 1,
},
},
},
},
Expression {
expr: Infix {
lhs: Variable {
name: "c",
},
op: Assign,
rhs: BitwiseNot {
value: Int {
i: 2,
},
},
},
},
Expression {
expr: Infix {
lhs: Variable {
name: "d",
},
op: Assign,
rhs: PreDecrement {
value: Variable {
name: "b",
},
},
},
},
Expression {
expr: Infix {
lhs: Variable {
name: "e",
},
op: Assign,
rhs: PreIncrement {
value: Variable {
name: "d",
},
},
},
},
]