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 *)

   decom: remove comments from within a comment


   decom(input: in; output: out)


   input:  a program having comments within comments.

   output: the same program with internal comments neutralized.


   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:

   Other comment manipulation programs:

   The gpc Gnu Pascal Compiler
   can handle embeded comments by using the --no-mixed-comments
   flag.  See:


   Thomas Dana Schneider


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.45}

{created by htmlink 1.62}