more primaries

This commit is contained in:
nora 2021-10-31 00:19:07 +02:00
parent a89c5f91f9
commit d848818824
4 changed files with 112 additions and 4 deletions

View file

@ -1,3 +1,6 @@
//!
//! This modules handles error reporting in the interpreter
use std::fmt::Debug;
#[derive(Debug, Copy, Clone, PartialOrd, PartialEq, Ord, Eq, Hash)]
@ -18,6 +21,10 @@ impl Span {
pub fn single(start: usize) -> Self {
Self { start, len: 1 }
}
pub fn dummy() -> Self {
Self { start: 0, len: 0 }
}
}
pub trait CompilerError {