Code generation for procedure literals

This commit is contained in:
gingerBill committed 2016-08-11 21:53:44 +01:00
1 parent 4c467b118d
commit 19cc77dad3
11 files changed
+341 -468

No files matched your search

+3
View File
@@ -1018,10 +1018,13 @@ AstNode *parse_operand(AstFile *f, b32 lhs) {
return type;
} else {
AstNode *body;
AstScope *curr_scope = f->curr_scope;
f->curr_scope = scope;
f->expr_level++;
body = parse_body(f, scope);
f->expr_level--;
f->curr_scope = curr_scope;
return make_procedure_literal(f, type, body);
}