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: