C codegen

This commit is contained in:
Krzosa Karol
2022-05-03 20:08:13 +02:00
parent 8c04044ea2
commit 557dde1936
11 changed files with 573 additions and 281 deletions

View File

@@ -91,9 +91,6 @@ expr_print(Parser *p, Expr *expr){
}
}
global S64 indent;
function B32
print_typespec(Parser *p, Typespec *spec){
switch(spec->kind) {
@@ -101,10 +98,6 @@ print_typespec(Parser *p, Typespec *spec){
lex_print("%s", spec->name.s.str);
} break;
case TS_Struct:{
print_decl(p, spec->struct_spec);
return false;
} break;
case TS_Pointer: {
print_typespec(p, spec->base);