Skip to main content

Module core

Module core 

Source
Expand description

Core calculator module with 100% test coverage

Probar Principles:

  • Error prevention: Type-safe operations prevent invalid states
  • Anomaly: Automatic anomaly detection

Modules§

evaluator
AST evaluator with 100% test coverage
history
Calculation history with 100% test coverage
parser
Expression parser with 100% test coverage

Structs§

AnomalyValidator
Anomaly validator - automatic anomaly detection by Probar
Calculator
Core calculator implementing all arithmetic operations

Enums§

AnomalyViolation
Anomaly violation types - anomalies detected during calculation
CalcError
Calculator error types - exhaustive enum ensures all cases handled
Operation
Type-safe operation enum - compile-time guarantee of valid operations

Type Aliases§

CalcResult
Result type for calculator operations