kyj_rpn_calc

Crates.iokyj_rpn_calc
lib.rskyj_rpn_calc
version0.1.2
sourcesrc
created_at2023-01-26 06:30:05.415668
updated_at2023-01-26 06:32:52.09822
descriptionRPN(Reverse Polish Notatio) library
homepagehttps://github.com/curiouscod3
repository
max_upload_size
id768236
size3,300
KY J. (curiouscod3)

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