pub mod hash;
#[cfg(feature = "tree")]
pub mod tree;
pub(crate) mod location;
pub use location::DefaultLocation;
pub use location::Location;
#[cfg(feature = "builder")]
pub mod builder;
pub mod parser;
pub mod rule;
pub(crate) mod token;
pub use token::TerminalSymbol;
pub use token::Token;
pub(crate) mod backtrace;
pub use backtrace::Backtrace;
#[derive(Debug, Default)]
pub struct DefaultReduceActionError;
impl std::fmt::Display for DefaultReduceActionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "Default reduce action error")
}
}
impl std::error::Error for DefaultReduceActionError {
fn cause(&self) -> Option<&dyn std::error::Error> {
None
}
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
None
}
fn description(&self) -> &str {
"Default reduce action error"
}
}