CMANGLE: A CTANGLE Alternative for the CWEB Literate Programming System

What is CMANGLE?

CMANGLE is an alternative to CTANGLE for CWEB. The principle differences between CMANGLE and CTANGLE is that CMANGLE keeps comments in the output, and converts the TeX documentation sections into C comments that are placed with the code each time it is included. In this way it produces even more human readable C source than CWEBx.

For an idea of what CMANGLE's output looks like, download cmangle.c, which is the source code for CMANGLE after processing by itself.

CMANGLE also has these other features:

But it might just be what you need, so give it a try.

Download CMANGLE

Compile with something like: gcc -Wall -o cmangle cmangle.c

The formatted version of CMANGLE can be downloaded as:


Page created 13 September 2006.