Swinging in a different direction, different syntax
This commit is contained in:
@@ -92,7 +92,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) {
|
||||
if (token->kind == TK_Identifier) {
|
||||
|
||||
AST_Node *type = symbol_lookup_type(p, token->intern_val);
|
||||
if(type){
|
||||
|
||||
Reference in New Issue
Block a user