summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-13 00:40:38 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-13 00:40:38 +0100
commit2a1cea0fa7073b8e53afcbfeded4b860cc14a985 (patch)
tree1a93ded759921aa1a998c7e18bc59b076cf32c54
parentTokenizer: Add suport for underscores in identifier parsing (diff)
downloadinterpreter-2a1cea0fa7073b8e53afcbfeded4b860cc14a985.tar.gz
interpreter-2a1cea0fa7073b8e53afcbfeded4b860cc14a985.tar.bz2
interpreter-2a1cea0fa7073b8e53afcbfeded4b860cc14a985.zip
Parser: clean
-rw-r--r--src/parser.zig2
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 = .{