revive-yul 0.1.0

The revive YUL parser library.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! The Yul IR error.

use crate::lexer::error::Error as LexerError;
use crate::parser::error::Error as ParserError;

/// The Yul IR error.
#[derive(Debug, thiserror::Error, PartialEq, Eq)]
pub enum Error {
    /// The lexer error.
    #[error("Lexical error: {0}")]
    Lexer(#[from] LexerError),
    /// The parser error.
    #[error("Syntax error: {0}")]
    Parser(#[from] ParserError),
}