检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:张素琴[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[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.249