Abstract
SEG is a syntax-directed editor generator consisting of three parts: Meta, a meta language which describes BNF-like syntax; a parser, which parses the syntax descriptions written in Meta and generates their driver tables; a syntax-directed editor, which performs editing operations using a table. Similar to its ancestors (e.g. CPS, 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 easily produced; ii) multifile can be edited in multiwindow; iii) private environments can be set up by users; 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. Like other syntax-directed editors, any program edited by SEG is syntactically correct. This paper outlines the SEG system and discusses the design principles and implementation techniques of the system.
Similar content being viewed by others
References
N. Meyrowitz, A. van Dam, Interacting editing system: Part I, II,Computing Surveys,14:3 (1982).
T. Teitelbaum, T. Reps, The cornell program synthesizer: a syntax-directed programming environment,Comm. ACM,24:9(1981, 563–573.
J. R. Horgan, D. J. Moore, Techniques for improving language-based editors,ACM SIGPLAN Notices,19:5(1984).
A. N. Habermann, D. Notkin, The Gandalf Software Development Environment, Technical Report, Carnegie-Mellon University, Computer Science Department, 1982.
T. Reps, T. Teitelbaum, The synthesizer generator,ACM SIGPLAN Notices,19:5(1984).
S. P. Reiss, Graphical development with PECAN program development systems,ACM SIGPLAN Notices,19:5(1984).
R. H. Campbell, P. A. Kirolis, The SAGA project: a system for software development,ACM SIGPLAN Notices,19:5 (1984).
N. M. Delisleet al. Viewing a programming environment as a single toolACM SIGPLAN Notices,19:5(1984).
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Zheng, G., Li, H. The design and implementation of the syntax-directed editor generator (SEG). J. of Compt. Sci. & Technol. 1, 39–48 (1986). https://doi.org/10.1007/BF02943307
Received:
Issue Date:
DOI: https://doi.org/10.1007/BF02943307