nrcc_core 0.1.0

A code counter.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Debug, Error)]
pub enum CoreError {
    #[error("Syntax error: {0}")]
    SyntaxError(String),
}

impl<T: std::fmt::Debug> From<nom::Err<T>> for CoreError {
    fn from(value: nom::Err<T>) -> Self {
        Self::SyntaxError(format!("{}", value))
    }
}