mq-lang 0.5.21

Core language implementation for mq query language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

use crate::{Shared, Token, selector};

#[derive(Error, Debug, PartialEq, Clone, PartialOrd, Eq, Ord)]
pub enum ParseError {
    #[error("Unexpected token `{0}`")]
    UnexpectedToken(Shared<Token>),
    #[error("Unexpected EOF detected")]
    UnexpectedEOFDetected,
    #[error("Insufficient tokens `{0}`")]
    InsufficientTokens(Shared<Token>),
    #[error("Expected a closing bracket `]` but got `{0}` delimiter")]
    ExpectedClosingBracket(Shared<Token>),
    #[error(transparent)]
    UnknownSelector(selector::UnknownSelector),
}