标题: 设计并实作一OOAG应用程式之建构环境
Design and Implementation of an OOAG Application Construction Environment
作者: 王建伟
Wang, Jian-Wei
王丰坚
Feng-Jian Wang
资讯科学与工程研究所
关键字: 属性文法;语意规格;物件导向技术;attribute grammars;semantic specification;object-oriented technique
公开日期: 1997
摘要: 属性文法(attribute grammars – AGs) 是一个用于描述语意规范与属性
之间相依关系计算的规格方法。其应用的领域非常广泛,诸如语言为基工
具的规格制订与自动产生。然而,由于现有的属性文法所提供的语言结构
与功能尚且不够丰富,以致于在用来建构应用程式时往往并不十分的实用
。因此我们认为应该在现有的属性文法之上增加下列三个功能,以补强其
实用性: (1)开发友善的图形使用者介面,以期能提供给使用者以更有效
率的方式制订应用程式规格, (2)加入一些更高阶的规格结构与语意,以
扩充属性文法的表达能力,与 (3)开发一个能够自动产生应用程式的整合
型建构环境。 这篇论文中提出了一个自动化的系统,称作物件导向属
性文法(object-orientedattribute grammar – OOAG)应用程式之建构环
境,以供使用者利用此环境所提供的图形使用者介面来开发语言为基的应
用程式。OOAG将物件导向技术充分地整合在属性文法内 (例如以物件导向
的观点来诠释剖析树– parse tree),藉以扩充一些较高阶的规格结构。
此外,目前环境本身可支援数种分析属性的方法(AG evaluation
methods) 以供使用者选择。为了验证其环境实用性,我们已用OOAG成功
地开发了四个应用程式。
Attribute grammars (AGs) are a well-known specification method
for describingsemantic constraints and computational
dependencies. Current application areasof AGs are of wide
ranges, which include generation of language-based tools.
Constructing these applications with existing AG systems,
however, may be inconvenient due to poor support for whole tool
development phases. It may behelpful to support AG application
development with (1) specificationcomposition support in GUI,
(2) AG specification language supported by higher-level
specification construct, (3) integrated application generation.
This thesis presents an automatic system, called OOAG
applicationconstruction environment, which provides GUIs to
facilitate the constructionof language-based applications. By
extending AGs to incorporate object-orientedview on parse tree
nodes, OOAG provides specification capability for higher-level
semantics. Besides, this environment is designed to support
flexibleapplication-generation options such as various AG
evaluation methods and kindsof target languages. Four examples
shown in this thesis are built by the OOAGapplication
construction environment to demonstrate the feasibility of
thesystem.
URI: http://140.113.39.130/cdrfb3/record/nctu/#NT860392037
http://hdl.handle.net/11536/62767
显示于类别:Thesis