Editing large programs using a structure-oriented text editor

  • Ola Strömfors
Part of the Lecture Notes in Computer Science book series (LNCS, volume 244)


This paper will describe how a structure-oriented text editor, named ED3, is used as a practical and efficient tool for program development and maintenance. Unlike syntax-directed editors this editor does not use its tree structure to represent the parse tree of the program. Instead the user is free to build any tree structure of text nodes he wants. For a block structured language the tree can be built the same way procedures are defined inside procedures.

The tree structure helps the programmer handle big programs. Browsing is supported by menus automatically created from the first line of each node. To enter or modify a text node, a screen-oriented text editor is used. Syntax checking (currently for Pascal and Ada) is done by a fast combined parser/pretty-printer. A single-key command will parse and pretty-print the current text node.


Tree Structure Tree Node Current Node Parse Tree Large Program 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. [1]
    Fisher, C.N., et al., The Poe Language-Based Editor Project, SIGPLAN Notices, vol 19, no 5 (1984), pp 21–29.Google Scholar
  2. [2]
    Stallman, R.M., EMACS the Extensible, Customizable Self-Documenting Display Editor, Proc. of ACM SIGPLAN-SIGOA Symposium on Text Manipulation, SIGPLAN Notices, vol 19, no 6 (1981), pp 147–156.Google Scholar
  3. [3]
    Strömfors, O., and Jonesjö, L., The Implementation and Experiences of a Structure-Oriented Text Editor. Proc. of ACM SIGPLAN-SIGOA Symposium on Text Manipulation, SIGPLAN Notices, vol 19, no 6 (1981), pp 22–27.Google Scholar
  4. [4]
    Teitelbaum, T., and Reps, T., The Cornell Program Synthesizer: A syntax-directed programming environment. Commun. ACM vol 24, no 9 (1981), pp 563–573.Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 1987

Authors and Affiliations

  • Ola Strömfors
    • 1
  1. 1.Department of Computer and Information ScienceLinköping UniversityLinköpingSweden

Personalised recommendations