A command-line Ruby algebraic equation tokenizer / solver.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests
README.md
evaluator.rb
main.rb
simple_number.rb
string.rb
test_simple_number.rb
tokenizer.rb

README.md

Ruby Expression Parser

This program calculates the value of an expression consisting of numbers, arithmetic operators, and parentheses.

Give it a try

$ ruby main.rb
Enter an expression: 2 + 2
=> 4