stack-based interpreter for terminal applications