A command-line Ruby algebraic equation tokenizer / solver.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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