帮助 本站公告
您现在所在的位置:网站首页 > 知识中心 > 文献详情
文献详细Journal detailed

一种构建Java语言扩展的编译器框架
Compiler Framework for Building Java Language Extensions

作  者: ;

机构地区: 中国科学技术大学计算机科学与技术学院

出  处: 《计算机工程》 2007年第19期51-53,共3页

摘  要: Polyglot是一种避免代码复制的、高度可扩展的编译器前端框架。用户只需扩展该框架,定义对抽象语法树、语义分析等的必要修改,即可实现Java语言扩展。为指导用户在Polyglot上快速开展工作,该文总结Polyglot的主要流程和类体系,剖析其利用委托、访问者、抽象工厂等实现可升级扩展的方法,简述了Polyglot的已有应用及应用步骤。  Polyglot is a highly extensible compiler frontend framework,while avoiding code duplication.Users may extend the framework to define any necessary changes on abstract syntax tree and semantic analysis for implementing language extensions.In order to direct users to work with Polyglot fleetly,the main flow and class hierarchy of Polyglot are summarized,and the methodologies of the scalable extensibility are anatomized,in which the delegation,visitors and abstract factories are employed.And the use steps of Polyglot and the related application are stated in a nut shell.

关 键 词: 可升级扩展 访问者 委托

领  域: [自动化与计算机技术] [自动化与计算机技术]

相关作者

作者 朱秋群

相关机构对象

机构 华南理工大学
机构 广东农工商职业技术学院

相关领域作者

作者 李文姬
作者 邵慧君
作者 杜松华
作者 周国林
作者 邢弘昊