From 9a47c6653918dacaaa37dce1b96a45b30564109f Mon Sep 17 00:00:00 2001 From: Karol Stasiak Date: Fri, 24 Jul 2020 17:28:04 +0200 Subject: [PATCH] Update documentation on operators --- docs/lang/operators.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/lang/operators.md b/docs/lang/operators.md index c53ac1f3..d3bcc2e7 100644 --- a/docs/lang/operators.md +++ b/docs/lang/operators.md @@ -18,7 +18,7 @@ Millfork has different operator precedence compared to most other languages. Fro * `->` and `[]` -* `*`, `*'` +* `*`, `*'`, `/`, `%%` * `+`, `+'`, `-`, `-'`, `|`, `&`, `^`, `>>`, `>>'`, `<<`, `<<'`, `>>>>` @@ -38,6 +38,9 @@ The only exceptions are `+` and `-`, and `+'` and `-'`. They are interpreted as expected: `5 - 3 + 2 == 4` and `5 -' 3 +' 2 == 4`. Note that you cannot mix `+'` and `-'` with `+` and `-`. +Certain operators (`/`, `%%`, `<<`, `>>`, `<<'`, `>>'`, `>>>>`, `:`, `!=`) cannot have more than 2 parameters, +i.e. `x / y / z` will not compile. + ## Argument types In the descriptions below, arguments to the operators are explained as follows: