Add floats

This commit is contained in:
Krzosa Karol
2022-06-02 22:52:16 +02:00
parent a416007bba
commit 2909214ee0
6 changed files with 51 additions and 15 deletions

View File

@@ -320,6 +320,9 @@ gen_ast(Ast *ast){
gen(";");
}
}
else if(sym->type == type_f64){
gen("// constant int %s = %f;", node->name.str, sym->f64_val);
}
else if(sym->type == type_int){
gen("// constant int %s = %lld;", node->name.str, sym->int_val);
}