標題: 利用物體導向技術於建構一語言為基的編輯器
Constructing a Language-Based Editor with Object-Oriented Techniques
作者: 胡仲華
Chung Hua Hu
王豐堅
Feng Jian Wang
資訊科學與工程研究所
關鍵字: 語言為基的編輯器;物體導向的;遞增式語意的評估;再利用性;language-based editor;MVC;object-oriented; incremental semantic evaluation;reusability
公開日期: 1993
摘要: 本篇論文提出一個以樣版為基(template-based)的MVC架構,簡稱為TMVC 。這是MVC的擴充,用於建構一個以語言為基的編輯器。TMVC將三個一組 的 MVC封裝為他的元件,使得每個TMVC都能夠處理輸入的事件(event)、 編排版面、以及處理和語言相關連的資訊(language-dependent information)。在編輯器內,編輯中的程式被建構成一個樹狀結構,稱為 程式樹 (program tree),而樹上的每一個節點都對應到一個TMVC。因此 ,一個程式可用一個以TMVC建構的階層結構模型來表示。物體導向技術也 用於建構從事語法和語意分析工作的遞增式工具 (incremental tools)。 在我們的編輯器中,遞增式語意的評估是透過程式樹中TMVC之間的訊息傳 遞(message passing)來達成。為了更佳的再利用性(reusability),一個 語言的類別階層(class hierarchy)是依照語言結構的功能性( functionality)所建構的。除此之外,在現有的程式環境中整合新遞增式 工具的步驟,也是我們要探討的主題。 This thesis presents a template-based MVC (TMVC for short) architecture, an extension of MVC, for constructing a language- based editor. A TMVC, encapsulating an MVC triad as its components, is capable of handling input events, displaying the layout, and processing language-dependent information. A program in the ediotr is constructed as a tree, called the program tree, and each node in the tree corresponds to a TMVC. Thus, a program is modeled by multiple TMVCs with hierarchical structures. Object-oriented techniques are also used to construct incremental tools for syntactic and semantic analyses. In our language-based editor, incremental semantic evaluation is performed via message passing between TMVCs in a program tree. For better reusability, the class hierarchy of a given language is constructed based on the functionality of the language constructs. Moreover, procedures for integrating a new incremental tool into the existing programming environment are also discussed.
URI: http://140.113.39.130/cdrfb3/record/nctu/#NT820392006
http://hdl.handle.net/11536/57808
Appears in Collections:Thesis