equation_solver/lib.rs
1//! The `equation-solver` crate allows intaking a string and parsing it into an equation that can be evaluated.
2//! Using this you can compile the equation into a quickly interpretable equation which can be used to evaluate the equation.
3//! Equations follow PEMDAS rules.
4
5#![warn(missing_docs)]
6#![deny(missing_debug_implementations)]
7
8/// The equation module contains the equation struct and all the items that can be used in an equation.
9pub mod equation;
10/// The error module contains all associated things to errors that can be yielded in any stage of the equation solver.
11pub mod error;
12/// The item module contains all the items that can appear in an equation.
13pub mod item;
14/// The parse module contains the parser which is used to take strings and turn them into equations.
15pub mod parse;
16
17
18pub use equation::Equation;
19pub use error::{EquationError, EquationErrorType};