diff options
Diffstat (limited to 'src/parser.zig')
-rw-r--r-- | src/parser.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.zig b/src/parser.zig index 61038d8..8d531c7 100644 --- a/src/parser.zig +++ b/src/parser.zig @@ -267,7 +267,7 @@ pub const Parser = struct { fn parse_unary_expression(self: *Parser) ParserError!*Node { errdefer if (!self.try_context) std.debug.print("Error parsing unary expression\n", .{}); - const negation = self.accept_token(tokenizer.TokenType.NOT) != null; + const negation = self.accept_token(tokenizer.TokenType.BANG) != null; if (!negation) { return try self.parse_primary_expression(); |