bump alloc

This commit is contained in:
nora 2021-12-30 13:19:52 +01:00
parent 9019dc0295
commit e26e849b56
9 changed files with 302 additions and 225 deletions

View file

@ -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),