1
0
dust/dust-lang/src/dust_error.rs

18 lines
320 B
Rust
Raw Normal View History

2024-09-07 10:38:12 +00:00
use crate::{vm::VmError, LexError, ParseError};
2024-09-07 16:15:47 +00:00
#[derive(Debug, PartialEq)]
pub enum DustError<'src> {
2024-09-07 16:15:47 +00:00
Lex {
error: LexError,
source: &'src str,
},
2024-09-07 16:15:47 +00:00
Parse {
error: ParseError,
source: &'src str,
},
2024-09-07 16:15:47 +00:00
Runtime {
error: VmError,
source: &'src str,
},
}