<正> 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.
展开▼