首页 | 本学科首页   官方微博 | 高级检索  
     

支持语言扩展的编译基础结构--X体系结构的研究
引用本文:胡伟平,张兆庆,乔如良.支持语言扩展的编译基础结构--X体系结构的研究[J].计算机学报,1999,22(4):403-408.
作者姓名:胡伟平  张兆庆  乔如良
作者单位:中国科学院计算技术研究所,北京,100080
摘    要:语言机制是提供抽象的核心手段,但并不能容易地扩展,给软件的编写和维护带来困难,我们定义了一个可扩展的编译体系结构-X体系结构,目标是支持用户扩展语言机制,编码领域抽象和优化技巧。它提供了一个可扩展的语言-X语言,允许用户程序访问程序的多个视图(如AST,类图,类型,上下文等),并用该语言定义语言扩展,逐步提高该语言的抽象能力,得到高效的定制编译系统,本文中展示了新的语言扩展-程序枚举的实现过程,表

关 键 词:可扩展编译体系结构  增量式程序设计  抽象数据类型  部分求值
修稿时间:1997年12月3日

A NEW APPROACH TO LANGUAGE EXTENSION :X ARCHITECTURE
HU Wei-ping,ZHANG Zhao-qing,QIAO Ru-liang.A NEW APPROACH TO LANGUAGE EXTENSION :X ARCHITECTURE[J].Chinese Journal of Computers,1999,22(4):403-408.
Authors:HU Wei-ping  ZHANG Zhao-qing  QIAO Ru-liang
Abstract:The language mechanism is the main vehicle to provide abstraction, but it is hard to implement a language extension. This paper Introduces the extensible compiler architecture which Is called X architecture, to speed up the development of language features which condensed the domain specific abstractions and skills. The core of the system is an extensible language called X language, it lets the programs of that language access multi-views of program such as AST, class graph etc, and extend the language. The domain abstraction vendor can extend the language incrementally to generate domain specific compiler. This paper also demonstrates how to add a new language facility, Meta-enumeration, smoothly to the X architecture and keep the same efficiency as hand-crafted compiler.
Keywords:Extensible compiler architecture  incremental programming  abstract data type  partial evaluation  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号