mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
number and string wrappers
This commit is contained in:
parent
8b3b055ab1
commit
0269a90c8c
2 changed files with 41 additions and 3 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue