Article View: de.comp.misc
Article #228Re: S: Pretty Printer
From: Patrick Dockhorn
Date: Fri, 02 Oct 1992 10:17
Date: Fri, 02 Oct 1992 10:17
40 lines
1957 bytes
1957 bytes
tgrind bzw. lgrind wurden erst kuerzlich in alt.sources gepostet.
Sie erzeugen TeX- bzw. LaTeX-Code, AUszug aus der Man-Page:
Tgrind formats program sources in a nice style using TeX(1).
Comments are placed in italics, keywords in bold face and
strings in typewriter font. Source file line numbers appear
in the right margin (every 10 lines). The start of a func-
tion is indicated by the function name in large type in the
right margin.
Tgrind processes its input file(s) and writes the result to
standard output. This output can be saved for later edit-
ting, inclusion in a larger document, etc.
The options are:
- take input from standard input
-n don't boldface keywords
-h specifies text to go on the left side of every output
page (default is none)
-d specifies the language definitions file (default is
/usr/local/tex/lib/vgrindefs)
-l specifies the language to use. Currently known are
PASCAL (-lp), RATFOR (-lr), Modula-2 (-lm2), MODEL (-
lm), C (-lc or the default), ISP (-li), Yacc (-ly),
Prolog (-lprolog), Icon (-lI), TeX (-ltex), CSH (-
lcsh), and Bourne Shell (-lsh).
cheers,
Patsch
--
Alone, adj.:
In bad company.
-- Ambrose Bierce, "The Devil's Dictionary"
Technical Details
Message-ID:
<1992Oct2.101727.23195@fzi.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!udel!darwin.sura.net!Sirius.dfn.de!ira.uka.de!gate.fzi.de!dockhornReferences:
<1992Oct01.223946.897@eumelos.stgt.sub.org>Show Full Headers
Complete Article Headers
Newsgroups: de.comp.misc,de.comp.lang.misc,de.comp.lang.c,de.comp.lang.pascal,de.comp.os.unix Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!udel!darwin.sura.net!Sirius.dfn.de!ira.uka.de!gate.fzi.de!dockhorn From: dockhorn@fzi.de (Patrick Dockhorn) Subject: Re: S: Pretty Printer Message-ID: <1992Oct2.101727.23195@fzi.de> Sender: news@fzi.de (FZI-news) Reply-To: dockhorn@fzi.de Organization: Forschungszentrum Informatik (FZI), Karlsruhe, Germany References: <1992Oct01.223946.897@eumelos.stgt.sub.org> Date: Fri, 2 Oct 1992 10:17:27 GMT Lines: 40