面向对象编译类库构造  被引量:5

Construction of object-oriented compilation class libraries

在线阅读下载全文

作  者:张素琴[1] 戴桂兰[1] 田金兰[1] 蒋维杜[1] 

机构地区:[1]清华大学计算机科学与技术系,北京100084

出  处:《清华大学学报(自然科学版)》2003年第7期964-967,共4页Journal of Tsinghua University(Science and Technology)

基  金:国家自然科学基金资助项目(60083004);国家教育振兴计划项目

摘  要:通过对编译系统进行面向对象分析,探讨了基于类库的编译器构造方法。在抽取语言文法基本结构的基础上,构造了可复用的编译基本类。编译基本类模型以语法单元为单位,集编译过程中词法分析、语法分析、语义处理、优化和执行等操作与一体,打破了传统编译器中各个编译阶段的空间分割。在基于类库构造的编译器中,对符号表做了类化处理并采用了动态的多级结构,同时将语言语法和语义的处理相分离。提高了编译成份的可扩展性、可复用性和可维护性。Object-oriented analysis of the compiler domain was used to construct a compiler using a compiler class lib rary. The basic grammar structures were modeled by the basic compiler classes an d the compiler front end architecture. All compilation phases, including lexical analysis, parsing, semantic handling, optimization and execution, are integrate d into the class model of a syntax unit. This eliminates the space split of diff erent compilation phases in traditional compilers. In this approach, the symbol tables are abstracted as classes, using dynamic multiple levels of structures. T he syntax analysis and semantic operations are handled separately, which greatly increases the extensibility, reusability and maintainability of compilation com ponents.

关 键 词:编译系统 编译程序 面向对象 编译器 类库 构造方法 词法分析 语法分析 语义处理 

分 类 号:TP314[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象