xidl-parser 0.64.0

A IDL codegen.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

#[derive(Debug, Clone, Error)]
pub enum ParseError {
    #[error("{0}")]
    Message(String),
    #[error("{0}")]
    Utf8Error(#[from] std::str::Utf8Error),
    #[error("Unexpected node: {0}")]
    UnexpectedNode(String),
    #[error("TreeSitterError: {0}")]
    TreeSitterError(String),
}

pub type ParserResult<T> = Result<T, ParseError>;