计算机科学 > 程序设计语言
[提交于 2023年5月5日]
标题:Type System for Four Delimited Control Operators
查看中文 PDF 查看原文 PDF EasyResearch 阅读摘要:The operational behavior of control operators has been studied comprehensively in the past few decades, but type systems of control operators have not. There are distinct type systems for shift, control, and shift0 without any relationship between them, and there has not been a type system that directly corresponds to control0. This paper remedies this situation by giving a uniform type system for all the four control operators. Following Danvy and Filinski's approach, we derive a monomorphic type system from the CPS interpreter that defines the operational semantics of the four control operators. By implementing the typed CPS interpreter in Agda, we show that the CPS translation preserves types and that the calculus with all the four control operators is terminating. Furthermore, we show the relationship between our type system and the previous type systems for shift, control, and shift0.
提交历史
来自:Chiaki Ishio[v1] 2023年5月5日 星期五 00:00:00 UTC