Assignment #7


Repeat assignment #6, only this time use regular expressions to do it. I want you to have operations on a single line now instead of multiple lines and you should have variables implemented in this one. For each line of input your program should output the top of the stack. As an example your file might have this:

2 3 + =A 7 5 - A *

This would output 10.