parse closure

This commit is contained in:
Folkert 2021-02-25 02:03:47 +01:00
parent f97e8ae7f3
commit 1a7fd57833
4 changed files with 110 additions and 23 deletions

View file

@ -379,11 +379,28 @@ pub enum EExpr<'a> {
When(When<'a>, Row, Col),
Lambda(ELambda<'a>, Row, Col),
// EInParens(PInParens<'a>, Row, Col),
IndentStart(Row, Col),
IndentEnd(Row, Col),
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum ELambda<'a> {
Space(BadInputError, Row, Col),
Start(Row, Col),
Arrow(Row, Col),
Comma(Row, Col),
// TODO make EEXpr
Pattern(EPattern<'a>, Row, Col),
Syntax(&'a SyntaxError<'a>, Row, Col),
IndentArrow(Row, Col),
IndentBody(Row, Col),
IndentArg(Row, Col),
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum When<'a> {
Space(BadInputError, Row, Col),