mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Use workspaces and move everything into compiler/
This commit is contained in:
parent
90e7cf8a15
commit
313b7a79e8
110 changed files with 565 additions and 400 deletions
25
compiler/parse/src/problems.rs
Normal file
25
compiler/parse/src/problems.rs
Normal file
|
@ -0,0 +1,25 @@
|
|||
use roc_region::all::Loc;
|
||||
|
||||
pub type Problems = Vec<Loc<Problem>>;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum Problem {
|
||||
// UNICODE CODE POINT
|
||||
/// TODO Invalid hex code - Unicode code points must be specified using hexadecimal characters (the numbers 0-9 and letters A-F)
|
||||
NonHexCharsInUnicodeCodePoint,
|
||||
/// TODO Invalid Unicode code point. It must be no more than \\u{10FFFF}.
|
||||
UnicodeCodePointTooLarge,
|
||||
InvalidUnicodeCodePoint,
|
||||
MalformedEscapedUnicode,
|
||||
NoUnicodeDigits,
|
||||
|
||||
// STRING LITERAL
|
||||
NewlineInLiteral,
|
||||
Tab,
|
||||
CarriageReturn,
|
||||
NullChar,
|
||||
UnsupportedEscapedChar,
|
||||
|
||||
// NUMBER LITERAL
|
||||
OutsideSupportedRange,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue