add parser learning code: calculator