From 2a1cea0fa7073b8e53afcbfeded4b860cc14a985 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Mon, 13 Jan 2025 00:40:38 +0100 Subject: Parser: clean --- src/parser.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = .{ -- cgit 1.4.1