diff options
Diffstat (limited to 'src/parse.c')
| -rw-r--r-- | src/parse.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parse.c b/src/parse.c index 80c7aac..b82c45d 100644 --- a/src/parse.c +++ b/src/parse.c @@ -547,6 +547,9 @@ static AstNode* parse_prefix_expr(Parser* p) { } else if (consume_token_if(p, TokenKind_not)) { AstNode* operand = parse_prefix_expr(p); return ast_new_unary_expr(op, operand); + } else if (consume_token_if(p, TokenKind_tilde)) { + AstNode* operand = parse_prefix_expr(p); + return ast_new_unary_expr(op, operand); } else if (consume_token_if(p, TokenKind_and)) { AstNode* operand = parse_prefix_expr(p); return ast_new_ref_expr(operand); |
