diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2025-01-13 00:40:38 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2025-01-13 00:40:38 +0100 |
commit | 2a1cea0fa7073b8e53afcbfeded4b860cc14a985 (patch) | |
tree | 1a93ded759921aa1a998c7e18bc59b076cf32c54 | |
parent | Tokenizer: Add suport for underscores in identifier parsing (diff) | |
download | interpreter-2a1cea0fa7073b8e53afcbfeded4b860cc14a985.tar.gz interpreter-2a1cea0fa7073b8e53afcbfeded4b860cc14a985.tar.bz2 interpreter-2a1cea0fa7073b8e53afcbfeded4b860cc14a985.zip |
Parser: clean
-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 5d3a957..7476ee1 100644 --- a/src/parser.zig +++ b/src/parser.zig @@ -180,7 +180,7 @@ pub const Parser = struct { else => unreachable, }; - while (self.match_token(tokenizer.TokenType.PLUS)) { + if (self.match_token(tokenizer.TokenType.PLUS)) { const rhs = try self.parse_expression(); return self.create_node(.{ .EXPRESSION = .{ .BINARY = .{ |