fmt
This commit is contained in:
parent
f8d9068012
commit
d9fd965b3b
1 changed files with 5 additions and 6 deletions
|
@ -103,7 +103,6 @@ tdefinition:
|
|||
}
|
||||
|
||||
list_constructor_and_their_ty:
|
||||
// TODO: C'est pas sensé être en option list_ty ici?
|
||||
| c=located(constructor) t=optionlist(list_ty) {
|
||||
(c, t)
|
||||
}
|
||||
|
@ -168,11 +167,11 @@ simple_pattern:
|
|||
}
|
||||
/* N-uplets ou parenthésage */
|
||||
| LPAREN RPAREN {
|
||||
PTuple([])
|
||||
}
|
||||
PTuple([])
|
||||
}
|
||||
| l=pattern_list {
|
||||
match l with | [alone] -> Position.value alone | _ -> PTuple(l)
|
||||
}
|
||||
match l with | [alone] -> Position.value alone | _ -> PTuple(l)
|
||||
}
|
||||
|
||||
|
||||
/* Annotation de type */
|
||||
|
@ -346,7 +345,7 @@ expression:
|
|||
Define(vd, e)
|
||||
}
|
||||
/* Fonction anonyme */
|
||||
| BACKSLASH p=located(pattern) ARROW e=located(expression){
|
||||
| BACKSLASH p=located(pattern) ARROW e=located(expression) {
|
||||
Fun(FunctionDefinition(p, e))
|
||||
}
|
||||
/* Application */
|
||||
|
|
Reference in a new issue