//! This package implements the core algorithm of the entire //! workspace: parsing with derivatives by means of chain rule and //! regular nulling languages. //! //! Since I shall not name my crate "core" to avoid collisions with //! the Rust's own core, I decided to name this crate after what I //! think is the essence of this algorithm, the chain-rule for //! derivatives of languages. pub mod grammar; pub fn add(left: usize, right: usize) -> usize { left + right } #[cfg(test)] mod tests { use super::*; #[test] fn it_works() { let result = add(2, 2); assert_eq!(result, 4); } }