number and string wrappers

This commit is contained in:
Folkert 2021-02-26 12:58:32 +01:00
parent 8b3b055ab1
commit 0269a90c8c
2 changed files with 41 additions and 3 deletions

View file

@ -393,12 +393,35 @@ pub enum EExpr<'a> {
InParens(EInParens<'a>, Row, Col),
Record(ERecord<'a>, Row, Col),
Str(EString, Row, Col),
Number(Number, Row, Col),
List(List<'a>, Row, Col),
IndentStart(Row, Col),
IndentEnd(Row, Col),
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Number {
NumberEnd,
NumberDot(i64),
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum EString {
EndlessSingle,
EndlessMulti,
StringEscape(Escape),
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Escape {
EscapeUnknown,
BadUnicodeFormat(u16),
BadUnicodeCode(u16),
BadUnicodeLength(u16, i32, i32),
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum ERecord<'a> {
End(Row, Col),