a simple lisp program for infix calculation in the command line
- Any common lisp interpreter
- clone repo into your machine
- open the directory and run calc.LISP using your lisp interpreter
- The expression must be provided as a list
- All elements of the list (operands and operators) must be space seperated eg: (1 + 2 * 3 / 4 + (10 + 2 -1))
- The output of the program is the resultant parenthesized expression and the output of that expression NOTE : the program uses early evaluation at certain points so you may not get the parenthesized expression you might expect. Regardless, the answer will be correct, dont worry