mirror of
https://github.com/TheM1Stery/izanami.git
synced 2025-04-19 16:31:11 +00:00
chore: add comment regarding grammar for comma op
This commit is contained in:
parent
4fd04e8fd3
commit
8338c360e0
@ -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<Expr, ParseError> {
|
||||
use TokenType::*;
|
||||
self.left_association_binary(&[Comma], Parser::equality)
|
||||
|
Loading…
Reference in New Issue
Block a user