progress on apply

This commit is contained in:
Folkert 2021-02-20 14:17:25 +01:00
parent f6fac092a4
commit e27be136cb
3 changed files with 181 additions and 10 deletions

View file

@ -372,6 +372,7 @@ pub type Col = u16;
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum EPattern<'a> {
Record(PRecord<'a>, Row, Col),
Apply(PApply<'a>, Row, Col),
Underscore(Row, Col),
Start(Row, Col),
@ -420,6 +421,21 @@ pub enum PInParens<'a> {
IndentEnd(Row, Col),
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum PApply<'a> {
///
StartNotUppercase(Row, Col),
End(Row, Col),
Space(BadInputError, Row, Col),
IndentStart(Row, Col),
///
Pattern(&'a EPattern<'a>, Row, Col),
///
DoubleDot(Row, Col),
TrailingDot(Row, Col),
StartIsNumber(Row, Col),
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Type<'a> {
TRecord(TRecord<'a>, Row, Col),