Mail Archives: djgpp/2004/02/05/08:17:06
Hans-Bernhard Broeker escreveu:
> Sterten <sterten AT aol DOT com> wrote:
>
>
[snipped]
>>that reminds me to Don Knuth's programs.
>
> [...]
>
>>because he uses an own,unusual language similar to C but with some
>>special "macros".
>
>
> I think you have not the slightest idea what you're talking about.
> That "C with some special macros" you're talking about is actually
> Knuth's own special programming tool "Web", which is actually not C at
> all, but Pascal, and intermixed with TeX for internal documentation.
>
I'm affraid you as well, Hans, went too far on this comment. From the
page referenced, in the link
http://www-cs-faculty.stanford.edu/~knuth/cweb.html please read:
<quote>
.
.
.
CWEB is a version of WEB for documenting C, C++, and Java programs. WEB
was adapted to C by Silvio Levy in 1987, and since then both Knuth and
Levy have revised and enhanced the system in many ways, notably to
support C++ and ANSI C. Thus CWEB combines TeX with today's most widely
used professional programming languages.
If you are in the software industry and do not use CWEB but your
competitors do, your competitors will soon overtake you---and you'll
miss out on a lot of fun besides.
More comments about CWEB can be found in Daniel Mall's website for
Literate Programming.
This book is the definitive user's guide and reference manual for the
CWEB system. The CWEB software itself is freely available via anonymous
ftp from labrea.stanford.edu, in directory ~ftp/pub/cweb. It consists of
two programs:
CTANGLE
converts a source file foo.w to a compilable program file foo.c; CWEAVE
converts a source file foo.w to a prettily-printable and cross-indexed
document file foo.tex.
Both CTANGLE and CWEAVE are stable, well-tested, and highly portable.
They have been installed on a wide variety of computers and operating
systems.
.
.
.
</quote>
HTH
--
Cesar Rabak
- Raw text -