fixed expr node

This commit is contained in:
pca006132 2020-12-23 16:22:58 +08:00 committed by pca006132
parent 4577d0cc12
commit 368690ccd9
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ def parse_stmts(ctx: Context,
a, b, returned = parse_for_stmt(ctx, sym_table2, used_sym_table2, return_ty, node)
elif isinstance(node, ast.Return):
a, b, returned = parse_return_stmt(ctx, sym_table2, used_sym_table2, return_ty, node)
elif isinstance(node, ast.Expr):
parse_expr(ctx, sym_table2, node.value)
continue
elif isinstance(node, ast.Break) or isinstance(node, ast.Continue):
continue
else: