Support nested parens in calculator