a line-wise arithmetic expression evaluator