mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-16 02:15:01 +01:00
bump alloc
This commit is contained in:
parent
9019dc0295
commit
e26e849b56
9 changed files with 302 additions and 225 deletions
|
|
@ -355,7 +355,7 @@ fn is_valid_ident_start(char: char) -> bool {
|
|||
char.is_alphabetic() || char == '_'
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct LexError {
|
||||
pub span: Span,
|
||||
pub kind: LexErrorKind,
|
||||
|
|
@ -399,7 +399,7 @@ impl CompilerError for LexError {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum LexErrorKind {
|
||||
InvalidCharacter(char),
|
||||
InvalidFloat(std::num::ParseFloatError),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue