summary refs log tree commit diff
diff options
context:
space:
mode:
-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 = .{