Simple interpreter for infix syntax