mirror of
https://github.com/KarolS/millfork.git
synced 2025-01-03 19:31:02 +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 `[]`
|
* `->` 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`.
|
They are interpreted as expected: `5 - 3 + 2 == 4` and `5 -' 3 +' 2 == 4`.
|
||||||
Note that you cannot mix `+'` and `-'` with `+` and `-`.
|
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
|
## Argument types
|
||||||
|
|
||||||
In the descriptions below, arguments to the operators are explained as follows:
|
In the descriptions below, arguments to the operators are explained as follows:
|
||||||
|
Loading…
Reference in New Issue
Block a user