Re: [Rd] An lgrind definition for the S language

From: Marc Schwartz (via MN) <>
Date: Mon 22 Aug 2005 - 19:17:16 GMT

On Mon, 2005-08-22 at 12:57 -0500, Douglas Bates wrote:
> I seem to recall discussion of an language definition file for S for
> use with the lgrind utility but I can't find any trace of it in an R
> Site Search. The lgrind utility takes a file of code in a particular
> programming language and prepares it for "pretty printing" in LaTeX.
> In my version the available language definitions are
> $ lgrind -s
> When specifying a language case is insignificant. You can use the
> name of the language, or, where available, one of the synonyms in
> parantheses. Thus the following are legal and mark Tcl/Tk, Pascal
> and Fortran input, respectively:
> lgrind -ltcl/tk ...
> lgrind -lpaSCAL ...
> lgrind -lf ...
> The list of languages currently available in your lgrindef file:
> Ada MLisp (Emacs Mock Lisp)
> Asm SML/NJ (ML)
> Asm68 Scheme (scm)
> BASIC model
> Batch (bat) Modula2 (mod2, m2)
> C Pascal (pas, p, bp)
> C++ (CC) PERL (pl)
> csh PostScript (ps)
> Gnuplot Python (py)
> ISP Russell
> Java SAS
> Kimwitu++ (kimw) SDL
> LaTeX sh
> Lex src
> Linda SQL
> make Tcl/Tk (tcl, tk)
> MASM VisualBasic (vbasic)
> Mercury yacc (y)
> Does anyone know of a similar facility for S code?


A search using Jon Baron's page came up with the following thread:

by Kjetil Kjernsmo

and the following post by Torsten Hothorn:

I checked "Rhelp 1997-2001" on Jon's search page, otherwise these would be missed.

Another approach would be to use Google with the following:

   lgrind site:

which would search the archives, including r-devel.

HTH, Marc mailing list Received on Tue Aug 23 05:21:31 2005

This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 22:27:41 GMT