[ymeng] calculator: refactor token parser