Update Sophia syntax docs to include missing information about existing syntax #896

Merged
ghallak merged 9 commits from ghallak/docs-update into master 2022-08-04 05:25:42 +09:00
Showing only changes of commit 1de552d713 - Show all commits

View File

@ -260,12 +260,12 @@ UnOp ::= '-' | '!'
| Operators | Type | Operators | Type
| --- | --- | --- | ---
| `-` `+` `*` `/` `mod` `^` | arithmetic operators | `-` `+` `*` `/` `mod` `^` | arithmetic operators
| `!` `&&` `\|\|` | logical operators | `!` `&&` `||` | logical operators
| `==` `!=` `<` `>` `=<` `>=` | comparison operators | `==` `!=` `<` `>` `=<` `>=` | comparison operators
| `::` `++` | list operators | `::` `++` | list operators
| `\|>` | functional operators | `|>` | functional operators
## Operator precendences ## Operator precedence
In order of highest to lowest precedence. In order of highest to lowest precedence.
@ -279,5 +279,5 @@ In order of highest to lowest precedence.
| `::` `++` | right | `::` `++` | right
| `<` `>` `=<` `>=` `==` `!=` | none | `<` `>` `=<` `>=` `==` `!=` | none
| `&&` | right | `&&` | right
| `\|\|` | right | `||` | right
| `\|>` | left | `|>` | left