mirror of
https://github.com/KarolS/millfork.git
synced 2024-12-29 02:31:45 +00:00
Update documentation on operators
This commit is contained in:
parent
b24ac32932
commit
9a47c66539
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user