Change syntax of compound exprs

This commit is contained in:
Krzosa Karol
2022-05-29 23:42:53 +02:00
parent 3f44a533be
commit 802dce749e
7 changed files with 65 additions and 75 deletions

View File

@@ -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){