summary refs log tree commit diff
path: root/src/parser.zig
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-21 20:33:08 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-21 20:33:08 +0100
commit2d0110dc36c41cd062603a47d72cdca6698c8201 (patch)
tree944419b02fa5f2080c9d86e3f17e7264de5a88f1 /src/parser.zig
parentMisc: Add `zig build example` step (diff)
downloadinterpreter-2d0110dc36c41cd062603a47d72cdca6698c8201.tar.gz
interpreter-2d0110dc36c41cd062603a47d72cdca6698c8201.tar.bz2
interpreter-2d0110dc36c41cd062603a47d72cdca6698c8201.zip
Tokenizer: Rename NOT token to BANG
Diffstat (limited to 'src/parser.zig')
-rw-r--r--src/parser.zig2
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();