A Rustic invitation to parsing: Calculator demo
This is the code repository that accompanies the Rustic invitation to parsing blog post. It provides a simple "desk calcualtor", showing how to build a handmade parser in Rust.
To run the calculator:
$ cargo run
To confirm that the calculator is working as expected, provide the input 1+2
and you should receive the output 3
:
Input: 1+2
Output: 3
Test
$ cargo test
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.