Stack calculator performs arithmetic expressions.