Prefix Calculator

This was an assignment for my CSC 115 class at the University of
Victoria. It reads input as a prefix calculator would.
For example, + - 4 8 2 outputs -2.
Any invalid input will return an invalid expression line.