{version = 1.10; (* of nocom.p 2000 Dec 4}
(* begin module describe.nocom *)
(*
name
nocom: remove comments from a program
synopsis
nocom(input: stdin; output: out)
files
input: a Pascal or Delila program with comments.
output: the same program with the contents of the comments removed
description
This program removes comments from a Delila or Pascal source code so that
one can, for example, compare two outputs of dbinst. It can also be used
to remove comments to allow one to count the number of Delila 'get'
statements.
The comments are left as 'nibbins' that have no contents.
This allows one to see exactly where the comments were.
One can remove these using Unix sed:
set asterisk = '*'
nocom < commented.p |\
sed -e 's/{}//g' | \
sed -e "s/(\$asterisk\$asterisk)//g" | \
cat > commentless.p
Note: Generally it is a bad idea to permanently remove comments from
a program!
see also
Description of what stdin means:
shell.p
Programs mentioned in the description above:
dbinst.p
delila.p
Other comment manipulation programs:
decom.p
codecomments.p
author
Thomas Dana Schneider
bugs
technical notes
Some programs have comment starts inside quotes. nocom
is now smart enough to avoid changing these.
*)
(* end module describe.nocom *)
{This manual page was created by makman 1.44}
{created by htmlink 1.52}