login

Syntax-directed editing of general data structures

Published 1 January 1981Open access
Christopher W. Fraser
Citations22
View PDF

TL;DR

An editor is described that accepts a grammar describing a hierarchical data structure and allows the user to enter and edit arbitrary trees having this structure, and displays the pros and cons of this approach.

Abstract

Program editors help users create syntactically correct programs. Though such editors normally edit parse trees, applying similar techniques to other tree structures that need editing helps both users and implementors. This paper describes an editor that accepts a grammar describing a hierarchical data structure and allows the user to enter and edit arbitrary trees having this structure. It displays the pros and cons of this approach using instances of this editor that edit formatted documents, simple line drawings, and stick figures for trees.

Keywords

Computer ScienceDecision Sciences