Juggle Home - Bits'n'Pieces - Feature Hitlist - Problem Reports - Mailing lists - The J Repository - References +-------------------+ | 9!:12'' | |5 | +-------------------+

J vgrindefs

Unix has a nice facility for pretty-printing code fragments and entire source files. Its name is "vgrind" and it refers to a data file /usr/lib/vgrindefs with simple definitions for various programming languages. "vgrind" will either format code fragments in a larger document (such as a conference report) and pass the output on to the "troff" typesetting system or it will take the entire input and send the output directly to troff and the printer.

Here is an entry for J:

# # The following is a first stab at a definition. neitzel, July 1998 # j|J|js|ijs|J script:\ :cb=NB.:ce=$:\ :sb=':se=':\ :tl:\ :pb=(^\p\d?=\::\ :kw=break. continue. for. for_ goto. goto_ if. do. elsif. else. end.\ label_ whilst. while. select. case. fcase. NB. return. tr. catch.: (And here's a link to the file for easy saving.)

SEE ALSO

vgrind(1), troff(1), vgrindefs(5), tgrind(1) (a public domain vgrind-alike for TeX)

+-------------------+ | 9!:12'' | |5 | +-------------------+ Juggle Home - Bits'n'Pieces - Feature Hitlist - Problem Reports - Mailing lists - The J Repository - References