Skip to content

balajisivaraman/basic_calculator_rs

Repository files navigation

Basic Calculator

This is an attempt to showcase the power of the nom library for Rust, and more in general, the power of utilising parser combinators for solving various parsing problems.

Problem Statement

I first came across the basic calculator problem statement in the Peer to Peer session between Ollie Charles and John Wiegley. For such a simple problem statement, I was impressed by how many Haskell features were demonstrated in that video. That is why I decided to use it as my first problem statement in learning Rust.

The problem statement itself is available as part of this codebase.

Solution

The solution pretty much mirrors the solution preseted by John in the above linked video, except the language and library of choice.

LICENSE

This project is licensed under MIT License. For more details, see the full LICENSE file.

About

Basic Calculator Implementation in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages