Delila Program: decom

decom program

Documentation for the decom program is below, with links to related programs in the "see also" section.

{version = 1.07; (* of decom.p 2000 Oct 24}

(* begin module describe.decom *)
(*
name

   decom: remove comments from within a comment

synopsis

   decom(input: in; output: out)

files

   input:  a program having comments within comments.

   output: the same program with internal comments neutralized.

description

   In Pascal there are two kinds of comments, brace and two-character.  On
   occasion one will have one of these inside the other (eg, this was
   originally generated by the module.p program).  Some compilers cannot
   handle this situation.  This program destroys the comments inside other
   comments by replacing their parts with other characters.  It is smart
   enough not to destroy comments inside quote strings.

see also

   Program mentioned in the description above:
   module.p

   Other comment manipulation programs:
   nocom.p
   codecomments.p

   The gpc Gnu Pascal Compiler
   http://agnes.dida.physik.uni-essen.de/~gnu-pascal/home.html
   can handle embeded comments by using the --no-mixed-comments
   flag.  See:
   ftp://ftp.ncifcrf.gov/pub/delila/gpcc

author

   Thomas Dana Schneider

bugs

technical notes

   The program defines several characters that are used to replace comment
   characters.  If the ones provided do not work on your system, you can use
   different ones.  The most convenient one is one which rarely occurs in a
   program and yet is easily found by a search in your editor.  In Unix for
   the vi editor the pound sign '#' is a reasonable choice.

*)
(* end module describe.decom *)
{This manual page was created by makman 1.44}
{created by htmlink 1.55}
National Cancer Institute    National Institutes of Health    Health and Human Services    USA Gov - Official Web Portal    Viewing Files    Accessibility