1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use std::error::Error;
pub mod symbol;
pub mod dasm;
pub mod traceback;
pub mod snapshot;
pub use symbol::{DebugSymbol, DebugSymbolResolver, TokenIndex, TokenLength};
mod tests;
/// trait for syntax or compile errors that are directly related to a piece of source code
pub trait SourceError: Error {
fn debug_symbol(&self) -> Option<&DebugSymbol>;
}