摘要
本文对一个新的PASCAL结构编辑器PSE(PASCAL StructuredEditor)的系统结构和功能进行了概括的描述。在设计和实现PSE时,作者提出了一种新的程序内部表示法,即所谓“文本-树”表示。与以往的程序内部表示相较,这种表示方法具有占用内存量小,光标控制及编辑操作简便以及无须进行内部语法树与行式文件间的转换等特点。实践证明,基于此种表示的语法制导编辑器是易于实现的,其工作效率是较高的。
In Recent years, research on structured editors has received much attention.In designing this kind of editors, the internal representation of program forstructured editor is very important. In a survey paper, Wang et al pointed outdeficiencies of existing internal representations of program of SED (Syntax-Direct Editor) [5]. In order to reduce some of these deficiencies the anthorspropose a new internal representation of program, called by them 'Text-Tree'.'Text-Tree' has the following features much better than those possessed byprevious internal representations of programs: 1. The memory space occupied by internal program is smaller. 2. By using 'template' as object of operation, the edit-operation andcursor-control are made simpler and more convenient, 3. There is no need to transform between internal tree and line numberedfiles, as is done in traditional syntax tree. Using 'Text-Tree' representation, we build an experimental structurededitor, PSE(PASCAL Structured Editor). The result shows that such a SEDbased on this representation is easier to build and its efficiency is also higher.
出处
《西北工业大学学报》
EI
CAS
CSCD
北大核心
1992年第1期103-111,共9页
Journal of Northwestern Polytechnical University
基金
国家自然科学基金