Change syntax of compound exprs
This commit is contained in:
@@ -285,7 +285,7 @@ gen_ast(Ast *ast){
|
||||
else if(sym->type == type_type){
|
||||
if(sym->type_val->kind == TYPE_STRUCT){
|
||||
Ast_Struct *agg = const_get_struct(sym->type_val->sym->ast);
|
||||
if(agg){
|
||||
if(node->value->kind == AST_STRUCT){
|
||||
gen("struct %s{", node->name.str);
|
||||
global_indent++;
|
||||
For(agg->members){
|
||||
|
||||
Reference in New Issue
Block a user