cjeich / rpn_calculator

A Reverse Polish Notation Calculator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RPN Calculator

A Reverse Polish Notation Calculator based on https://gist.github.com/nilbus/29b0752086f59af3e2bb

Reverse Polish Notation Calculator

This implements a reverse polish notation calculator

Running the project

This project has no external dependencies. To run, execute calculator.rb from the commandline

$ ./calculator.rb

This executable accepts input from stdin

$ ./calculator.rb < list_of_args.txt

Additions to the spec

  • help - will give you a list of available commands
  • clear - clears previous inputs

Tests

Tests for this project are written in rspec. The can be run from the root directory with rspect

$ rspec

About

A Reverse Polish Notation Calculator

License:MIT License


Languages

Language:Ruby 100.0%