Introduce pipe operator |> (#371)

* Add pipe operator

* Add tests

* Update docs and CHANGELOG
This commit is contained in:
Gaith Hallak
2022-04-12 12:40:32 +03:00
committed by GitHub
parent cfcf0a8a81
commit 74aff5401b
7 changed files with 41 additions and 6 deletions
+3
View File
@@ -234,6 +234,7 @@ Path ::= Id // Record field
BinOp ::= '||' | '&&' | '<' | '>' | '=<' | '>=' | '==' | '!='
| '::' | '++' | '+' | '-' | '*' | '/' | 'mod' | '^'
| '|>'
UnOp ::= '-' | '!'
```
@@ -245,6 +246,7 @@ UnOp ::= '-' | '!'
| `!` `&&` `\|\|` | logical operators
| `==` `!=` `<` `>` `=<` `>=` | comparison operators
| `::` `++` | list operators
| `\|>` | functional operators
## Operator precendences
@@ -261,3 +263,4 @@ In order of highest to lowest precedence.
| `<` `>` `=<` `>=` `==` `!=` | none
| `&&` | right
| `\|\|` | right
| `\|>` | left