【24h】

An Introductory Tutorial on JastAdd Attribute Grammars

机译:Jastadd属性语法的入门教程

获取原文

摘要

JastAdd is an open-source system for generating compilers and other language-based tools. Its declarative specification language is based on reference attribute grammars and object-orientation. This allows tools to be implemented as composable extensible modules, as exemplified by JastAddJ, a complete extensible Java compiler. This tutorial gives an introduction to JastAdd and its core attribute grammar mechanisms, and how to use them when solving key problems in building language-based tools. A simple state machine language is used as a running example, showing the essence of name analysis, adding graphs to the abstract syntax tree, and computing circular properties like reachability. Exercises are included, and code for the examples is available online.
机译:Jastadd是一种用于生成编译器和基于语言的工具的开源系统。其声明性规范语言基于引用属性语法和对象方向。这允许将工具实现为可组合可扩展模块,如Jastaddj,一个完整的可扩展Java编译器所示。本教程介绍了Jastadd及其核心属性语法机制,以及如何在解决基于语言的工具中的关键问题时使用它们。一个简单的状态机语言用作一个跑步示例,显示名称分析的本质,将图形添加到抽象语法树,以及计算循环属性,如可达性。包括练习,并在线提供示例的代码。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号