Update Sophia syntax docs to include missing information about existing syntax #896
@ -182,6 +182,10 @@ LetDef ::= Id Args [':' Type] '=' Block(Stmt) // Function definition
|
|||||||
| Pattern '=' Block(Stmt) // Value definition
|
| Pattern '=' Block(Stmt) // Value definition
|
||||||
|
|
||||||
Case ::= Pattern '=>' Block(Stmt)
|
Case ::= Pattern '=>' Block(Stmt)
|
||||||
|
| Pattern Block(GuardedCase)
|
||||||
|
|
||||||
|
GuardedCase ::= '|' Sep1(Expr, ',') '=>' Block(Stmt)
|
||||||
|
|
||||||
Pattern ::= Expr
|
Pattern ::= Expr
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user