计算机科学 > 程序设计语言
[提交于 2024年7月16日]
标题:Haskelite: A Tracing Interpreter Based on a Pattern-Matching Calculus
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Many Haskell textbooks explain the evaluation of pure functional programs as a process of stepwise rewriting using equations. However, usual implementation techniques perform program transformations that make producing the corresponding tracing evaluations difficult. This paper presents a tracing interpreter for a subset of Haskell based on the pattern matching calculus of Kahl. We start from a big-step semantics in the style of Launchbury and develop a small-step semantics in the style of Sestoft's machines. This machine is used in the implementation of a step-by-step educational interpreter. We also discuss some implementation decisions and present illustrative examples.
提交历史
来自:Rodrigo Marques[v1] 2024年7月16日 星期二 15:20:17 UTC