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
This program calculates the value of an expression consisting of numbers, arithmetic operators, and parentheses.
$ ruby main.rb
Enter an expression: 2 + 2
=> 4