From 7abf56a88440110d5b380406649135b5755f83d0 Mon Sep 17 00:00:00 2001 From: nocturn9x Date: Tue, 13 Jul 2021 16:12:08 +0200 Subject: [PATCH] Typo --- docs/grammar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/grammar.md b/docs/grammar.md index db35909..fe69b2f 100644 --- a/docs/grammar.md +++ b/docs/grammar.md @@ -85,7 +85,7 @@ continueStmt → "continue" ";"; whileStmt → "while" "(" expression ")" statement; // While loops run until their condition is truthy blockStmt → "{" declaration* "}"; // Blocks create a new scope that lasts until they're closed // Expressions (rules that produce a value, but may also have side effects) -expression → assignment ; +expression → assignment; assignment → ( call "." )? IDENTIFIER "=" assignment | logic_or; // Assignment is the highest-level expression logic_or → logic_and ( "||" logic_and )*; logic_and → equality ( "&&" equality )*;