Crate calc_lib

source ·
Expand description

This crate contains logic for an application to parse and evaluate basic rational number arithmetic using standard operator precedence and associativity.

Modules

  • Fixed-sized cache that automatically overwrites the oldest data when a new item is added and the cache is full. One can think of Cache as a very limited but more performant VecDeque that only adds new data or reads old data.

Structs

  • Evaluates the supplied input.
  • A value from a previous expression that is to be displayed potentially in decimal form.

Enums

  • The error that is returned when attempting to evaluate the input.
  • A successful evaluation of an input.