Working on code in language, fixing bugs

This commit is contained in:
Krzosa Karol
2022-06-17 17:00:34 +02:00
parent 5b55852619
commit 871ff65ec2
9 changed files with 71 additions and 131 deletions

View File

@@ -432,7 +432,11 @@ gen_ast(Ast *ast){
CASE(IF, If){
For(node->ifs){
if(it->init) gen_expr(it->init);
if(it->init) {
gen_expr(it->init);
gen(";");
genln("");
}
if(node->ifs.is_first(&it)){
gen("if(");
gen_expr(it->expr);