检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]吉林大学计算机科学与技术学院,长春130012
出 处:《吉林大学学报(信息科学版)》2005年第5期529-534,共6页Journal of Jilin University(Information Science Edition)
基 金:吉林省科技发展计划基金资助项目(20050727)
摘 要:传统的面向过程式的元级程序设计系统存在一些弊端,如指针操作容易出错等。尤其当处理的语言文法规则过多时,过于频繁的指针操作会降低系统的稳定性和可靠性。为此,采用面向对象的元程序设计方法,使用基于文法的抽象语法树描述中间表示,将元级操作封装成类,构造了面向对象的元级程序设计系统OOMPS(Ob ject-O riented M etaprogramm ing System)。该系统利用类的继承机制以及对象与其成员函数之间的关系来代替指针操作,避免了指针带来的各种问题。基于该方法,实现了全系统简明测试语言ATLAS(Abbrevi-ated Test Language for A ll System s,该语言的文法规则大约有2 680条)的元程序设计系统ATLAS-MPS。试验表明,该系统效果优良,并具有稳定性及可扩充性。There are some defects, such as pointer operation which easily makes an error, in the traditional procedure-oriented metaprogramming. If grammars of the language has too much rules, over frequently operating pointer will decrease the stability and reliability of a system. The OOMS (Object-Oriented Metaprogramming System) based on the object-oriented metaprogramming method uses abstract syntax trees based on grammers to describe middle representations, and encapsulates metaoperatings into Class. It substitutes the inheritance mechanism of classes and the relationship of objects and its member functions for pointer operation, accordingly avoids all problems caused by pointer. Basing on this method, a metaprogramming system of ATLAS ( Abbreviated Test language for All Systems ), ATLAS MPS has been implemented, which grammar has approximately 2 680 rules. The experimentation shows that ATLAS_MPS is excellent and has well stability and expandability.
关 键 词:元程序设计系统 元程序 目标程序 元级操作 抽象语法树
分 类 号:TP301[自动化与计算机技术—计算机系统结构]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.117