计算机科学 > 程序设计语言
[提交于 2016年10月15日]
标题:Trees That Grow
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We study the notion of extensibility in functional data types, as a new approach to the problem of decorating abstract syntax trees with additional sets of information. We observed the need for such extensibility while redesigning the data types representing Haskell abstract syntax inside GHC. Specifically, we describe our approach to the tree-decoration problem using a novel syntactic machinery in Haskell for expressing extensible data types. We show that the syntactic machinery is complete in that it can express all the syntactically possible forms of extensions to algebraic data type declarations. Then, we describe an encoding of the syntactic machinery based on the existing features in Glasgow Haskell Compiler(GHC).
提交历史
来自:Shayan Najd[v1] 2016年10月15日 星期六 23:43:48 UTC