Backup, Decl,Type parsing enum,structs etc.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user