Update docs and CHANGELOG
This commit is contained in:
parent
70bf1c6201
commit
1b42159140
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
### Added
|
### Added
|
||||||
- Compiler warnings for the follwing: shadowing, negative spends, division by zero, unused functions, unused includes, unused stateful annotations, unused variables, unused parameters, unused user-defined type, dead return value.
|
- Compiler warnings for the follwing: shadowing, negative spends, division by zero, unused functions, unused includes, unused stateful annotations, unused variables, unused parameters, unused user-defined type, dead return value.
|
||||||
|
- The pipe operator |>
|
||||||
|
```
|
||||||
|
[1, 2, 3] |> List.first |> Option.is_some // Option.is_some(List.first([1, 2, 3]))
|
||||||
|
```
|
||||||
### Changed
|
### Changed
|
||||||
- Error messages have been restructured (less newlines) to provide more unified errors. Also `pp_oneline/1` has been added.
|
- Error messages have been restructured (less newlines) to provide more unified errors. Also `pp_oneline/1` has been added.
|
||||||
### Removed
|
### Removed
|
||||||
|
@ -234,6 +234,7 @@ Path ::= Id // Record field
|
|||||||
|
|
||||||
BinOp ::= '||' | '&&' | '<' | '>' | '=<' | '>=' | '==' | '!='
|
BinOp ::= '||' | '&&' | '<' | '>' | '=<' | '>=' | '==' | '!='
|
||||||
| '::' | '++' | '+' | '-' | '*' | '/' | 'mod' | '^'
|
| '::' | '++' | '+' | '-' | '*' | '/' | 'mod' | '^'
|
||||||
|
| '|>'
|
||||||
UnOp ::= '-' | '!'
|
UnOp ::= '-' | '!'
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -245,6 +246,7 @@ UnOp ::= '-' | '!'
|
|||||||
| `!` `&&` `\|\|` | logical operators
|
| `!` `&&` `\|\|` | logical operators
|
||||||
| `==` `!=` `<` `>` `=<` `>=` | comparison operators
|
| `==` `!=` `<` `>` `=<` `>=` | comparison operators
|
||||||
| `::` `++` | list operators
|
| `::` `++` | list operators
|
||||||
|
| `\|>` | functional operators
|
||||||
|
|
||||||
## Operator precendences
|
## Operator precendences
|
||||||
|
|
||||||
@ -261,3 +263,4 @@ In order of highest to lowest precedence.
|
|||||||
| `<` `>` `=<` `>=` `==` `!=` | none
|
| `<` `>` `=<` `>=` `==` `!=` | none
|
||||||
| `&&` | right
|
| `&&` | right
|
||||||
| `\|\|` | right
|
| `\|\|` | right
|
||||||
|
| `\|>` | left
|
||||||
|
Loading…
x
Reference in New Issue
Block a user