Skip to content

nhatcher/sample-desk-calcualtor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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

at your option.

About

Here we will show you how to build a simple parser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%