diff options
| author | Baitinq <[email protected]> | 2025-01-21 20:33:08 +0100 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-01-21 20:33:08 +0100 |
| commit | 1c0c64eafae32dd401f5e0c442f6cf432327e7e5 (patch) | |
| tree | 944419b02fa5f2080c9d86e3f17e7264de5a88f1 /src/parser.zig | |
| parent | Misc: Add `zig build example` step (diff) | |
| download | pry-lang-1c0c64eafae32dd401f5e0c442f6cf432327e7e5.tar.gz pry-lang-1c0c64eafae32dd401f5e0c442f6cf432327e7e5.tar.bz2 pry-lang-1c0c64eafae32dd401f5e0c442f6cf432327e7e5.zip | |
Tokenizer: Rename NOT token to BANG
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(); |