arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1002.1549cs.PLcs.SE
收藏

用于分析器生成的可扩展类型检查器

Extensible type checker for parser generation

Andrey Breslav

摘要:

解析器生成器根据语言规范生成翻译器。在许多情况下,这样的规范包含用与生成的代码相同的语言编写的语义操作。由于这些操作很少受到静态检查,因此它们通常是错误的来源,只有在编译生成的代码时才能发现这些错误。在本文中,我们提出了一个解析器生成器前端静态检查语义动作的类型错误,并防止此类错误出现在生成的代码。类型检查过程是可扩展的,以支持许多实现语言。Java的扩展与声明式类型系统描述的扩展一起呈现。

英文摘要:

Parser generators generate translators from language specifications. In many cases, such specifications contain semantic actions written in the same language as the generated code. Since these actions are subject to little static checking, they are usually a source of errors which are discovered only when generated code is compiled. In this paper we propose a parser generator front-end which statically checks semantic actions for typing errors and prevents such errors from appearing in generated code. The type checking procedure is extensible to support many implementation languages. An extension for Java is presented along with an extension for declarative type system descriptions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑