postfix 0.1.2

Postfix expression evaluator
Documentation
  • Coverage
  • 0%
    0 out of 5 items documented0 out of 0 items with examples
  • Size
  • Source code size: 6.89 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.53 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • mtso

postfix

postfix is a postfix math notation calculator. Postfix notation are math expressions where the operators follow the operands. There is thus no need for braces as the order of the operators enforce the order of operations.

Example

extern crate postfix;
use postfix::PostfixCalculator;

let calculator = PostfixCalculator::new();
println!("result: {:?}", calculator.evaluate(&vec!["4", "2", "+"]));
// result: 6.0