Editing large programs using a structure-oriented text editor
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.
KeywordsTree Structure Tree Node Current Node Parse Tree Large Program
Unable to display preview. Download preview PDF.
- Fisher, C.N., et al., The Poe Language-Based Editor Project, SIGPLAN Notices, vol 19, no 5 (1984), pp 21–29.Google Scholar
- 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
- 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
- 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