IR: implement compileVar builtin and more

* implicit array to slice cast
 * fix if statements at global scope
 * implement array type IR
This commit is contained in:
Andrew Kelley
2016-11-19 01:39:51 -05:00
parent 19037014e5
commit 8a81f8aa13
7 changed files with 357 additions and 416 deletions

View File

@@ -696,7 +696,7 @@ static void render_node_extra(AstRender *ar, AstNode *node, bool grouped) {
fprintf(ar->f, ") ");
render_node_grouped(ar, node->data.if_bool_expr.then_block);
if (node->data.if_bool_expr.else_node) {
fprintf(ar->f, "else ");
fprintf(ar->f, " else ");
render_node_grouped(ar, node->data.if_bool_expr.else_node);
}
break;