Use Sep1 instead of Sep for the GuardedDef

This commit is contained in:
Gaith Hallak 2022-08-03 00:23:56 +04:00
parent 6ff8463db4
commit c4061701b0

View File

@ -106,7 +106,7 @@ FunDecl ::= Id ':' Type // Type signature
| Id Args [':' Type] '=' Block(Stmt) // Definition
| Id Args [':' Type] Block(GuardedDef) // Guarded definitions
GuardedDef = '|' Sep(Expr, ',') '=' Block(Stmt)
GuardedDef = '|' Sep1(Expr, ',') '=' Block(Stmt)
PragmaOp ::= '<' | '=<' | '==' | '>=' | '>'
Version ::= Sep1(Int, '.')