Summary: | 碩士 === 國立交通大學 === 資訊工程研究所 === 82 === 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.
|