mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-16 10:25:02 +01:00
more primaries
This commit is contained in:
parent
a89c5f91f9
commit
d848818824
4 changed files with 112 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue