Pic language

Pic language

Pic is a domain-specific language by Brian Kernighan for specifying diagrams in terms of objects such as boxes with arrows between them. The pic compiler translates this description into concrete drawing commands. Pic is a procedural programming language, with variable assignment, macros, conditionals, and looping. The language is an example of a "little language" originally intended for the comfort of non-programmers in the Unix environment (Bentley 1988).

Pic was first implemented, and is still most typically used, as a preprocessor in the troff document processing system. The pic preprocessor filters a troff document, replacing diagram descriptions by concrete drawing commands, and passing the rest of the document through without change.

A version of pic is included in groff, the GNU version of troff. GNU pic can also act as a preprocessor for TeX documents. Arbitrary diagram text can be included for formatting by the word processor to which the pic output is directed, and arbitrary post-processor commands can also be included. Dwight Aplevich's implementation, [http://www.ece.uwaterloo.ca/~aplevich/dpic/ DPIC] , can also generate postscript images by itself, as well as act as a preprocessor. The three principal sources of pic processors are GNU pic, found on many Linux systems, and dpic, both of which are free, and the original AT&T pic.

Pic has some similarity with MetaPost and the DOT language.

References

*Brian W. Kernighan. "PIC - A Language for Typesetting Graphics", Software Practice Experience 12 (1982), 1–20.

*J. Bentley. "More Programming Pearls", Addison-Wesley (1988).

External links

* [http://floppsie.comp.glam.ac.uk/Glamorgan/gaius/web/pic.html Making Pictures With GNU PIC]
* [http://www.kohala.com/start/troff/troff.html Troff resources (see the "pic" section)]
* [http://www.onlamp.com/pub/a/onlamp/2007/06/21/in-praise-of-pic.html?page=1 ONLamp.com: "In Praise of Pic"]
* [http://www.ece.uwaterloo.ca/~aplevich/dpic/ DPIC] , an implementation of the PIC language by Dwight Aplevich. This implementation has a few nice extensions and outputs many different image formats.


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • PIC — Cette page d’homonymie répertorie les différents sujets et articles partageant un même nom.  Pour les articles homophones, voir Pique et Pick …   Wikipédia en Français

  • PIC — or Pic can refer to the following:Technology* Personal Internet Communicator * Pic language (computer image description language) * PIC microcontroller by Microchip, Inc. * PICtor PIC image format * Pixar Image Computer * Plastic identification… …   Wikipedia

  • Pic — Cette page d’homonymie répertorie les différents sujets et articles partageant un même nom.  Pour les articles homophones, voir Pique et Pick. Sur les autres projets Wikimedia  …   Wikipédia en Français

  • PIC microcontroller — PIC microcontrollers in DIP and QFN packages …   Wikipedia

  • Pic du Midi — de Bigorre Pic du Midi de Bigorre, Blick von Monné Höhe 2.877  …   Deutsch Wikipedia

  • Pic d'Anie — Der Pic d Anie von Nordwesten Höhe 2.507 m …   Deutsch Wikipedia

  • Pic d'Eina — Pic d’Eina Ansicht der spanischen Seite Höhe 2.789 msnm …   Deutsch Wikipedia

  • Pic Roxy Ann — Vue du pic Roxy Ann. Géographie Altitude 1 090 m[1] …   Wikipédia en Français

  • PIC 16F84 de Microchip — PIC 16F84 16F84 dont le numéro 16 signifie qu il fait partie de la famille MID RANGE . C est la famille de PIC qui travaille sur des mots de 14 bits. La lettre F indique que la mémoire programme de ce PIC est de type Flash . Les deux derniers… …   Wikipédia en Français

  • pic´tur|esque´ness — pic|tur|esque «PIHK chuh REHSK», adjective, noun. –adj. 1. quaint or interesting enough to be used as the subject of a picture: »a picturesque old mill. An experienced, industrious, ambitious, and often quite picturesque liar (Mark Twain). 2.… …   Useful english dictionary

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”