mod fmt;
use super::{lexer, parser, AnalysisDisplayContext};
#[derive(Debug)]
pub enum Error {
Lexer(lexer::Error),
Parser(parser::Error),
}
impl std::error::Error for Error {}
#[derive(Debug)]
pub struct Errors(pub Box<[Error]>);
impl Errors {
pub fn is_empty(&self) -> bool {
self.0.is_empty()
}
}