By downloading this code you agree to the
Source Code Use License (PDF). |
{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:
https://alum.mit.edu/www/toms/ftp/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.45}
{created by htmlink 1.62}