skip to main content
article
Free Access

Prettyprinting in an interactive programming environment

Authors Info & Claims
Published:01 April 1981Publication History
Skip Abstract Section

Abstract

Prettyprint algorithms designed for printing programs on paper are not appropriate in an interactive environment where the interface to the user is a CRT screen. We describe a data representation and an algorithm that allow the efficient generation of program displays from a parsed internal representation of a program. The displays show the structure of the program by consistent and automatic indentation. They show the program in varying levels of detail by replacing unimportant parts with ellipsis marks. The relative importance of program parts is determined jointly by the structure of the program and by the current focus of attention of the programmer.

References

  1. 1 Alberga, C. N., Brown, A. L., Leeman, G. B. Jr., Mikelsons, M., and Wegman, M. N., A Program Development Tool, Eighth Annual ACM Symposium on Principles of Programming Languages, January 1981, 92-104. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. 2 Donzeau-Gouge, V., Huet, G., Kahn, G., Lang, B. and Levy, J. J., A Structure-oriented Program Editor: A First Step Towards Computer Assisted Programming, International Computing Symposium 1975, North Holland Publishing Company, 1975.Google ScholarGoogle Scholar
  3. 3 Hawkinson, L., and Kameny, S. L., LISP Edit Program, LISPED, System Development Corporation, TM-2337/100/01, April 1966.Google ScholarGoogle Scholar
  4. 4 Swinehart, D. C., COPILOT: A Multiple Process Approach to Interactive Programming Systems, Stanford Artificial Intelligence Laboratory Memo AIM-230, Stanford University, July 1974.Google ScholarGoogle Scholar
  5. 5 Teitelbaum, R. T., The Cornell Program Synthesizer: A Microcomputer Implementation of PL/CS, Department of Computer Science, Cornell University, TR 79-370, June 1979. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. 6 Teitelman, W., INTERLISP Reference Manual, Xerox Palo Alto Research Center, 1976.Google ScholarGoogle Scholar
  7. 7 Wegman, M. N., Parsing for Structural Editors, Twenty-first Annual IEEE Symposium on Foundations of Computer Science, October 1980, 320-327.Google ScholarGoogle Scholar

Index Terms

  1. Prettyprinting in an interactive programming environment

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in

    Full Access

    • Published in

      cover image ACM SIGPLAN Notices
      ACM SIGPLAN Notices  Volume 16, Issue 6
      June 1981
      160 pages
      ISSN:0362-1340
      EISSN:1558-1160
      DOI:10.1145/872730
      Issue’s Table of Contents
      • cover image ACM Conferences
        Proceedings of the ACM SIGPLAN SIGOA symposium on Text manipulation
        June 1981
        160 pages
        ISBN:0897910508
        DOI:10.1145/800209

      Copyright © 1981 Author

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 1 April 1981

      Check for updates

      Qualifiers

      • article

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader