An open API service indexing awesome lists of open source software.

https://github.com/bclehmann/calculator

A simple repo for learning rust and getting familiar with parser generators
https://github.com/bclehmann/calculator

Last synced: about 1 month ago
JSON representation

A simple repo for learning rust and getting familiar with parser generators

Awesome Lists containing this project

README

          

# calculator
A simple project for learning rust and getting familiar with parser generators.

This uses the [pest](https://crates.io/crates/pest) parser generator to create a 4-function calculator, with support for order of operations and parentheses.
In hindsight, I didn't learn much rust (it's barely a hundred lines), but this was a good intro into more complicated grammars. It made compilers and interpreters
drastically less intimidating.