Crate mathypad

Source
Expand description

§Mathypad

A smart calculator that understands units and makes complex calculations simple.

This library provides the core functionality for mathypad, including:

  • Unit-aware mathematical expression evaluation
  • Comprehensive unit conversion system
  • TUI application framework
  • CLI interface utilities

Re-exports§

pub use cli::run_one_shot_mode;
pub use app::App;
pub use mode::Mode;
pub use ui::run_interactive_mode;
pub use ui::run_interactive_mode_with_file;

Modules§

app
Application state and core logic
cli
Command-line interface functions
expression
Expression parsing and evaluation system
mode
Vim-like editing modes for the application.
ui
User interface components and rendering
units
Unit system for mathypad
version
Version tracking functionality for mathypad

Structs§

UnitValue
Represents a numeric value with an optional unit

Enums§

Unit
UnitType

Constants§

FLOAT_EPSILON
MAX_INTEGER_FOR_FORMATTING
TICK_RATE_MS

Functions§

evaluate_expression_with_context
Main evaluation function that handles context for line references