Backup, Decl,Type parsing enum,structs etc.

This commit is contained in:
Krzosa Karol
2022-04-29 23:28:41 +02:00
parent 9cbbb4d616
commit a5a3acf3ef
12 changed files with 407 additions and 45 deletions

View File

@@ -93,7 +93,7 @@ Expr* parse_unary_expr(Parser* p) {
else if (token_is(p, TK_OpenParen)) { // cast requires lookahead
Token *token = token_peek(p, 1);
if (token->kind == TK_Keyword || token->kind == TK_Identifier) {
Type *type = type_get(p, token);
Type *type = type_get(p, token->intern_val);
if(type != type_undefined){
token_next(p);
token_next(p);