Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Pretty-printing
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Lisp pretty-printer=== An early example of pretty-printing was [[Bill Gosper]]'s "GRINDEF" (''i.e.'' 'grind function') program (''c.'' 1967), which used [[combinatorial optimization|combinatorial search]] with pruning to format [[Lisp programming language|LISP]] programs. Early versions operated on the executable (list structure) form of the Lisp program and were oblivious to the special meanings of various functions. Later versions had special read conventions for incorporating non-executable comments and also for preserving [[read macro]]s in unexpanded form. They also allowed special indentation conventions for special functions such as <code>if</code>.<ref>Ira Goldstein, "Pretty Printing : Converting List to Linear Structure", Artificial Intelligence Memo 279, Massachusetts Institute of Technology, February 1973. [http://www.softwarepreservation.org/projects/LISP/MIT/AIM-279-Goldstein-Pretty_Printing.pdf/view full text]</ref><ref>Richard C. Waters, "Using the new common Lisp pretty printer", ''ACM SIGPLAN Lisp Pointers'' '''5''':2:27-34, April–June 1992. [https://web.archive.org/web/20170706120420/ftp://publications.ai.mit.edu/ai-publications/pdf/AIM-1102.pdf full text]</ref> The term "grind" was used in some Lisp circles as a synonym for pretty-printing.<ref>[[Jargon File]], ''s.v.'' grind</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)