论文部分内容阅读
SEG is a syntax-directed editor generator consisting of three parts:Meta,a meta languagewhich describes BNF-like syntax;a parser,which parses the syntax descriptions written in Metaand generates their driver tables;a syntax-directed editor,which performs editing operationsusing a table.Similar to its ancestors(e.g.CPS,Gandalf),SEG is characterized by the followingfeatures:i)it is for a variety of languages so that the editor of a specific language can be easilyproduced;ii)multifile can be edited in multiwindow;iii)private environments can be set up byusers;iv)the PC-mouse with the dedicated menus enables users to enter commands correctlyand quickly;v)pretty-printing of program documents is done automatically or manually.Likeother syntax-directed editors,any program edited by SEG is syntactically correct.This paperoutlines the SEG system and discusses the design principles and implementation techniques ofthe system.
A parser, which parses the syntax descriptions written in Metaand generating their driver tables; a syntax-directed editor, which performs editing operations using a table.Similar to its ancestors (egCPS, Gandalf), SEG is characterized by the following features: i) it is for a variety of languages so that the editor of a specific language can be easilyproduced; ii) multifile can be edited in multiwindow ; iii) private environments can be set up byusers; iv) the PC-mouse with the dedicated menus enables users to enter commands correctly and quickly; v) pretty-printing of program documents is done automatically or manually .Likeother syntax-directed editors, any program edited by SEG is syntactically correct. This paperoutlines the SEG system and discusses the design principles and implementation techniques of the system.