In article <3461781A.DFF8E541@gsf.de>,
Karsten Rodenacker <rodena@gsf.de> writes:
> Hi,
> is there anyone on the list who has written an IDL style sheet for a2ps.
> I am using xemacs as IDL dev environment, but printout could be
> improved.
>
> Regards
Here is an IDL style sheet for a2ps version 4.9.8
I have not had a chance to test it much, so I would
appreciate it if you could report any errors you find
to me.
By the way, for anyone not familiar with a2ps, it is
a great printing utility for unix. It is great for
printing code and email. See
http://www-inf.enst.fr/~demaille/a2ps/
-bob
----- start idl.ssh -----
############################################################ ###################
#
# idl.ssh --- Sheet definitions for IDL (Interactive Data Language)
#
# Author : Robert S. Mallozzi <Robert.Mallozzi@msfc.nasa.gov>
# Created : October, 1997
#
############################################################ ###################
style idl is
written by "Robert S. Mallozzi <Robert.Mallozzi@msfc.nasa.gov>"
version is 0.9
requires a2ps version 4.9.8
documentation is
"Style sheet for IDL (Interactive Data Language)."
"http://www.rsinc.com"
end documentation
alphabets are
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_."
case insensitive
keywords in Keyword_strong are
"if", "then", "else", "endif", "for", "do", "endfor", "while", "endwhile",
"repeat", "until", "endrep", "case", "of", "endcase", "goto", "begin",
"end", "common", "return", "retall", "pro", "function", "forward_function",
"mod", "not", "or", "and", "ge", "gt", "lt", "le", "eq", "ne", "xor",
">", "<", "stop",
"bindgen", "bytarr", "cindgen", "complexarr", "dblarr", "dindgen",
"dcindgen", "dcomplexarr", "dindgen", "findgen", "fltarr", "indgen",
"intarr", "lindgen", "lonarr", "objarr", "ptrarr", "sindgen", "strarr",
"on_error", "on_ioerror", "breakpoint", "print"
end keywords
optional operators are
NOT \not,
OR \vee,
XOR,
AND \wedge,
GE \geq,
GT >,
LT <,
LE \leq,
EQ \equiv,
NE \neq,
<,
>,
\#
end operators
sequences are
; Comment
end sequences
end style
----- end idl.ssh -----
--
Dr. Robert S. Mallozzi
University of Alabama in Huntsville
http://cspar.uah.edu/~mallozzir/
|