Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 364 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 364 Bytes

What?

This is a simple calculator implemented with the use of Perl Regexp::Grammar.

The Calculator reads the specified input file and executes the commands within.

See input.txt for the expected format.

To run type $> perl calc.pl input_file_name.txt

To run tests type $> perl tests.pl

Supported commands

  1. SUM
  2. MIN
  3. MAX
  4. AVERAGE