Working on actually making a program
This commit is contained in:
@@ -183,7 +183,10 @@ gen_expr(Ast_Expr *ast){
|
||||
auto name_for_printf = (Ast_Atom *)node->name;
|
||||
For(node->exprs){
|
||||
if(intern_printf == name_for_printf->intern_val && &it == node->exprs.data){
|
||||
gen("\"%s\"", name_for_printf->intern_val.str);
|
||||
Ast_Atom *atom = (Ast_Atom *)it->item;
|
||||
assert(atom->kind == AST_VALUE);
|
||||
assert(atom->type == untyped_string);
|
||||
gen("\"%s\"", atom->intern_val.str);
|
||||
}
|
||||
else gen_expr(it->item);
|
||||
if(!node->exprs.is_last(&it)) gen(", ");
|
||||
@@ -218,6 +221,7 @@ gen_ast(Ast *ast){
|
||||
|
||||
CASE(PACKAGE, Package){
|
||||
For(node->ordered) {
|
||||
genln("");
|
||||
genln("");
|
||||
gen_ast(it);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user