Added CT_SWITCH parsing in top level. Nil changed to null. Parsing more in line with grammar. Parse type as expressions. Zero init by default for locals. Corrected bool/fp conversion. Add memcpy pass to fix issue with value load/stores.

This commit is contained in:
Christoffer Lerno
2020-09-05 16:18:09 +02:00
committed by Christoffer Lerno
parent fb937156fe
commit 77ccfc1f7c
43 changed files with 863 additions and 415 deletions

View File

@@ -334,15 +334,7 @@ void gencontext_emit_extern_decl(GenContext *context, Decl *decl)
break;
case DECL_ENUM:
TODO
case DECL_ARRAY_VALUE:
case DECL_IMPORT:
case DECL_MACRO:
case DECL_GENERIC:
case DECL_CT_IF:
case DECL_CT_ELSE:
case DECL_CT_ELIF:
case DECL_ATTRIBUTE:
case DECL_LABEL:
case NON_TYPE_DECLS:
UNREACHABLE
}
}