pub(crate) mod hashmap;
pub(crate) mod rule;
pub(crate) mod token;
#[cfg(feature = "tree")]
pub(crate) mod tree;
#[cfg(feature = "tree")]
pub use tree::Tree;
#[cfg(feature = "tree")]
pub use tree::TreeList;
#[cfg(feature = "tree")]
pub use tree::TreeNonTerminal;
#[cfg(feature = "builder")]
pub mod builder;
pub mod lr;
pub mod glr;
pub use hashmap::HashMap;
pub use hashmap::HashSet;
pub use rule::ProductionRule;
pub use rule::LookaheadRule;
pub use rule::LookaheadRuleRefSet;
pub use rule::ShiftedRule;
pub use rule::ShiftedRuleRef;
pub use rule::ReduceType;
pub use token::Token;
#[cfg(feature = "error")]
pub(crate) mod backtrace;
#[cfg(feature = "error")]
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"
}
}