aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--syntax.md9
1 files 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/)