use crate::lexer::error::Error as LexerError;
use crate::parser::error::Error as ParserError;
#[derive(Debug, thiserror::Error, PartialEq, Eq)]
pub enum Error {
#[error("Lexical error: {0}")]
Lexer(#[from] LexerError),
#[error("Syntax error: {0}")]
Parser(#[from] ParserError),
}