Misc changes
This commit is contained in:
26
meta.py
26
meta.py
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user