计算机科学 > 程序设计语言
[提交于 2019年6月27日]
标题:Stepping OCaml
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Steppers, which display all the reduction steps of a given program, are a novice-friendly tool for understanding program behavior. Unfortunately, steppers are not as popular as they ought to be; indeed, the tool is only available in the pedagogical languages of the DrRacket programming environment. We present a stepper for a practical fragment of OCaml. Similarly to the DrRacket stepper, we keep track of evaluation contexts in order to reconstruct the whole program at each reduction step. The difference is that we support effectful constructs, such as exception handling and printing primitives, allowing the stepper to assist a wider range of users. In this paper, we describe the implementation of the stepper, share the feedback from our students, and show an attempt at assessing the educational impact of our stepper.
提交历史
来自:EPTCS[v1] 2019年6月27日 星期四 03:32:58 UTC