Arith interpreter written in Scala