Misc changes

This commit is contained in:
Krzosa Karol
2022-12-31 14:16:46 +01:00
parent e07ad3c86d
commit 673db72e29
9 changed files with 174 additions and 76 deletions

26
meta.py
View File

@@ -128,4 +128,28 @@ interns = [
"load",
"import",
"link",
]
]
value_struct_content = """
Ast_Type *type;
Ast_Decl *resolved_decl;
union {
bool bool_val;
F64 f64_val;
Intern_String intern_val;
BigInt big_int_val;
Ast_Type *type_val;
};
""".strip()
def inline_value_fields():
print(f"""
union {{
Value value;
struct {{
{value_struct_content}
}};
}};
""".strip())