laplade

Crates.iolaplade
lib.rslaplade
version0.1.2
sourcesrc
created_at2023-02-02 23:51:47.927715
updated_at2023-02-03 00:11:51.450457
descriptionRPN(Reverse Polish Notatio) library
homepagehttps://github.com/Laplade/laplade/tree/master/cargo
repository
max_upload_size
id775261
size3,764
(Laplade)

documentation

README

RPN(Reverse Polish Notation) Calc

Reverse Polish notation (RPN) Calc.

Example

fn main() {
    let src = String::from("1 2 + 3 * ");
    let a = rpn_calc::eval(src).unwrap();
    println!("{}", a); // →9
}
fn main() {
    let result = rpn_calc::eval_str("1 2 3 * +");
    println!("{}", result); // →7
}
Commit count: 0

cargo fmt