From 8338c360e042569476ccc455169b9f686bb22f42 Mon Sep 17 00:00:00 2001 From: Seymur Bagirov Date: Fri, 3 Jan 2025 03:27:30 +0400 Subject: [PATCH] chore: add comment regarding grammar for comma op --- src/parser.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parser.rs b/src/parser.rs index fb97903..988aa4a 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -28,6 +28,7 @@ impl Parser<'_> { } // Challenge #1. We're writing comma before equality, because it has the lowest precedence + // comma -> equality ((,) equality)* ; // expression grammar fn comma(&mut self) -> Result { use TokenType::*; self.left_association_binary(&[Comma], Parser::equality)