Skip to content

fflorent/rust-rpn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Reverse Polish Notation written in Rust

This package contains both an executable and a library for Reverse Polish Notation (aka RPN) calculation.

Executable

In order to run a REPL to evaluate RPN expressions, just run cargo run.

Library

If you want to evaluate use the library, take a look at rpn::evaluate(expr: &str) -> Result<f32, &str>:

extern crate rpn;

let result:f32 = rpn::evaluate("5 2 +").unwrap();

License

MIT

About

A Reverse Polish Notation lib + executable

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages