refactor: rename modules to nicer names

This commit is contained in:
electria 2026-09-30 19:48:14 -07:00
commit 2deabb148e
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs
3 changed files with 4 additions and 4 deletions

View file

@ -6,17 +6,17 @@ use std::fmt::{Debug, Display};
use rug::Float;
mod evaluate;
pub mod from_str;
mod eval;
pub mod parse;
#[cfg(test)]
mod tests;
#[derive(Clone, Debug, thiserror::Error)]
pub enum Error {
#[error("{0}")]
Parsing(#[from] from_str::Error),
Parsing(#[from] parse::Error),
#[error("{0}")]
Evaluation(#[from] evaluate::Error),
Evaluation(#[from] eval::Error),
}
/// helper function to parse to Nodes and immediately evaluate