Skip to content

Commit

Permalink
DOC: rephrase description of operator associativity
Browse files Browse the repository at this point in the history
to increase readability.
  • Loading branch information
johnyf committed Dec 8, 2023
1 parent 79764be commit 024d560
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -1297,19 +1297,18 @@ Comments are written using TLA+ syntax:

Doubly-delimited comments can span multiple lines.

The token precedence (lowest to highest) and associativity
(r = right, l = left, n = none) is:

- `:` (l)
- `<=>, <->` (l)
- `=>, ->` (l)
- `-` (l)
- `#`, `^` (l)
- `\/, |` (l)
- `/\, &` (l)
- `=` (l)
- `~, !` (r)
- `-` (r) unary minus, as in `-5`
The token precedence (lowest to highest) and associativity is:

- `:` (left)
- `<=>, <->` (left)
- `=>, ->` (left)
- `-` (left)
- `#`, `^` (left)
- `\/, |` (left)
- `/\, &` (left)
- `=` (left)
- `~, !`
- `-` unary minus, as in `-5`

The meaning of a number of operators,
assuming `a` and `b` take Boolean values:
Expand Down

0 comments on commit 024d560

Please sign in to comment.