From 3b468950ed988b84fbea4232ceed23d68637a266 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Wed, 14 Oct 2020 11:46:18 -0600 Subject: allow consistent bitwise and/or chains --- syntax.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/syntax.md b/syntax.md index 79b92ad..0123d7e 100644 --- a/syntax.md +++ b/syntax.md @@ -326,9 +326,9 @@ ArithmeticSuffix ← '+' TermExpression / BitwiseOpExpression ← ArithmeticExpression '<<' ArithmeticExpression / ArithmeticExpression '>>' ArithmeticExpression / - ArithmeticExpression '&' ArithmeticExpression / ArithmeticExpression '^' ArithmeticExpression / - ArithmeticExpression '|' ArithmeticExpression / + ArithmeticExpression ('&' ArithmeticExpression)+ / + ArithmeticExpression ('|' ArithmeticExpression)+ / ArithmeticExpression ComparisonExpression ← BitwiseOpExpression '==' BitwiseOpExpression / @@ -339,8 +339,9 @@ ComparisonExpression ← BitwiseOpExpression '==' BitwiseOpExpression / BitwiseOpExpression '>' BitwiseOpExpression / BitwiseOpExpression -Expression ← ComparisonExpression ('&&' ComparisonExpression)* / - ComparisonExpression ('||' ComparisonExpression)* +Expression ← ComparisonExpression ('&&' ComparisonExpression)+ / + ComparisonExpression ('||' ComparisonExpression)+ / + ComparisonExpression ``` [![Creative Commons BY-SA License](https://i.creativecommons.org/l/by-sa/4.0/80x15.png)](http://creativecommons.org/licenses/by-sa/4.0/) -- cgit v1.2.3