diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2025-01-21 19:59:06 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2025-01-21 19:59:06 +0100 |
commit | 7af801c368dced4c1bec09e61bf407ce64108186 (patch) | |
tree | 8c7fe3be13543224cb1eeda28e2b2097418d6c3c | |
parent | Grammar: Fix typo (diff) | |
download | interpreter-7af801c368dced4c1bec09e61bf407ce64108186.tar.gz interpreter-7af801c368dced4c1bec09e61bf407ce64108186.tar.bz2 interpreter-7af801c368dced4c1bec09e61bf407ce64108186.zip |
Bug: Fix bug with priority of parsing expressions
-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 4b64303..61038d8 100644 --- a/src/parser.zig +++ b/src/parser.zig @@ -217,8 +217,8 @@ pub const Parser = struct { errdefer if (!self.try_context) std.debug.print("Error parsing expression\n", .{}); return self.accept_parse(parse_equality_expression) orelse - self.accept_parse(parse_additive_expression) orelse self.accept_parse(parse_function_definition) orelse + self.accept_parse(parse_additive_expression) orelse return ParserError.ParsingError; } |