步进OCaml
Stepping OCaml
摘要:
Steppers显示了给定程序的所有缩减步骤,是一种用于理解程序行为的新手友好工具。不幸的是,stepper并不像它们应该的那样受欢迎;事实上,该工具仅在DrRacket编程环境的教学语言中可用。我们提出了一个实用的OCaml片段的步进器。与DrRacket步进器类似,我们跟踪评估上下文,以便在每个约简步骤中重建整个程序。不同的是,我们支持有效的构造,如异常处理和打印原语,允许步进器帮助更广泛的用户。在本文中,我们描述了实施的步进器,分享我们的学生的反馈,并显示在评估我们的步进器的教育影响的尝试。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。