Add floats
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user