Skip to main content
Log in

The design and implementation of the syntax-directed editor generator (SEG)

  • Published:
Journal of Computer Science and Technology Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Institutional subscriptions

Similar content being viewed by others

References

  1. N. Meyrowitz, A. van Dam, Interacting editing system: Part I, II,Computing Surveys,14:3 (1982).

    Google Scholar 

  2. T. Teitelbaum, T. Reps, The cornell program synthesizer: a syntax-directed programming environment,Comm. ACM,24:9(1981, 563–573.

    Article  Google Scholar 

  3. J. R. Horgan, D. J. Moore, Techniques for improving language-based editors,ACM SIGPLAN Notices,19:5(1984).

    Google Scholar 

  4. A. N. Habermann, D. Notkin, The Gandalf Software Development Environment, Technical Report, Carnegie-Mellon University, Computer Science Department, 1982.

  5. T. Reps, T. Teitelbaum, The synthesizer generator,ACM SIGPLAN Notices,19:5(1984).

    Google Scholar 

  6. S. P. Reiss, Graphical development with PECAN program development systems,ACM SIGPLAN Notices,19:5(1984).

    Google Scholar 

  7. R. H. Campbell, P. A. Kirolis, The SAGA project: a system for software development,ACM SIGPLAN Notices,19:5 (1984).

    Google Scholar 

  8. N. M. Delisleet al. Viewing a programming environment as a single toolACM SIGPLAN Notices,19:5(1984).

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Download citation

  • Received:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF02943307

Keywords

Navigation