turtle-build 0.5.15

Ninja-compatible build system for high-level programming languages
Documentation
use thiserror::Error;

#[derive(Clone, Debug, Eq, Error, PartialEq)]
#[error("{message}")]
pub struct ParseError {
    message: String,
}

impl ParseError {
    pub const fn new(message: String) -> Self {
        Self { message }
    }
}

impl From<nom::Err<nom::error::Error<&str>>> for ParseError {
    fn from(error: nom::Err<nom::error::Error<&str>>) -> Self {
        Self::new(error.to_string())
    }
}