revive-yul 0.5.0

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

use crate::lexer::token::location::Location;

/// The Yul IR lexer error.
#[derive(Debug, thiserror::Error, PartialEq, Eq)]
pub enum Error {
    /// The invalid lexeme error.
    #[error("{location} Invalid character sequence `{sequence}`")]
    InvalidLexeme {
        /// The lexeme location.
        location: Location,
        /// The invalid sequence of characters.
        sequence: String,
    },
}