首页    期刊浏览 2024年11月06日 星期三
登录注册

文章基本信息

  • 标题:Resumption-based big-step and small-step interpreters for While with interactive I/O
  • 本地全文:下载
  • 作者:Keiko Nakata
  • 期刊名称:Electronic Proceedings in Theoretical Computer Science
  • 电子版ISSN:2075-2180
  • 出版年度:2011
  • 卷号:66
  • 页码:226-235
  • DOI:10.4204/EPTCS.66.12
  • 出版社:Open Publishing Association
  • 摘要:In this tutorial, we program big-step and small-step total interpreters for the While language extended with input and output primitives. While is a simple imperative language consisting of skip, assignment, sequence, conditional and loop. We first develop trace-based interpreters for While. Traces are potentially infinite nonempty sequences of states. The interpreters assign traces to While programs: for us, traces are denotations of While programs. The trace is finite if the program is terminating and infinite if the program is non-terminating. However, we cannot decide (i.e., write a program to determine), for any given program, whether its trace is finite or infinite, which amounts to deciding the halting problem. We then extend While with interactive input/output primitives. Accordingly, we extend the interpreters by generalizing traces to resumptions.
国家哲学社会科学文献中心版权所有