A Structure Editor with Type-Safe Copy/Paste

IFL '22: Proceedings of the 34th Symposium on Implementation and Application of Functional Languages(2022)

引用 0|浏览0
暂无评分
摘要
The editor calculus of Godiksen et al [2] describes the edit primitives of a syntax-directed editor for functional programs in a simply typed lambda calculus. However, a main shortcoming is that only topdown programming is allowed, meaning that we can only construct the AST from the root. This makes it difficult to refactor previously written code without having to potentially delete and re-insert large parts of a program. The present paper modifies the calculus to not only handle programs with Hindley-Milner-style let polymorphism but also to incorporate a notion of copy/paste functionality. We present an extended semantics and a type system of the new system and prove that it remains sound: Well-typed editor expressions will always produce a well-typed program.
更多
查看译文
关键词
Structure editors,type systems,polymorphism,lambda calculus,copy,paste
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要