计算机科学 > 程序设计语言
[提交于 2020年2月6日]
标题:Patterns for Name Analysis and Type Analysis with JastAdd
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:In the last two decades, tools have been implemented to more formally specify the semantic analysis phase of a compiler instead of relying on handwritten code. In this paper, we introduce patterns and a method to translate a formal definition of a language's type system into a specification for JastAdd, which is one of the aforementioned tools based on Reference Attribute Grammars. This methodological approach will help language designers and compiler engineers to more systematically use such tools for semantic analysis. As an example, we use a simple, yet complete imperative language and provide an outlook on how the method can be extended to cover further language constructs or even type inference.
提交历史
来自:Uwe Meyer[v1] 2020年2月6日 星期四 00:00:00 UTC