mclangc/tests/parser/if-statements.exp

42 lines
1.2 KiB
Plaintext

Program {
ast: Block(
[
Expr(
If(
IfExpr {
test: BinOp {
typ: Gt,
left: Path(
Path(
[
Ident(
"i",
),
],
),
),
right: Literal(
Number(
Number {
val: 3,
base: 10,
signed: false,
},
),
),
},
body: Block(
[],
),
else_if: None,
},
),
),
],
),
structs: {},
enums: {},
types: {},
functions: {},
member_functions: {},
}