paperbot · PL 论文追踪

RSS

Inferring scope through syntactic sugar

ICFP 1(ICFP)2017引用 8
Justin Pombrio, Shriram Krishnamurthi, Mitchell Wand

尚未生成 AI 速览(可能缺少 API key 或等待下次运行补跑)。

原文摘要(Abstract)

Many languages use syntactic sugar to define parts of their surface language in terms of a smaller core. Thus some properties of the surface language, like its scoping rules , are not immediately evident. Nevertheless, IDEs, refactorers, and other tools that traffic in source code depend on these rules to present information to users and to soundly perform their operations. In this paper, we show how to lift scoping rules defined on a core language to rules on the surface, a process of scope inference . In the process we introduce a new representation of binding structure---scope as a preorder---and present a theoretical advance: proving that a desugaring system preserves α-equivalence even though scoping rules have been provided only for the core language. We have also implemented the system presented in this paper.

链接与引用

DOI 原文 · PDF(开放获取) · DBLP

BibTeX
@article{PombrioKW17,
  title = {Inferring scope through syntactic sugar},
  author = {Justin Pombrio and Shriram Krishnamurthi and Mitchell Wand},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {1},
  number = {ICFP},
  year = {2017},
  doi = {10.1145/3110288}
}