cweavex

C/C++ literate programming system (Marc van Leeuwen's version)

Install

All systems
curl cmd.cat/cweavex.sh
Debian Debian
apt-get install cwebx
Ubuntu
apt-get install cwebx
image/svg+xml Kali Linux
apt-get install cwebx
Windows (WSL2)
sudo apt-get update sudo apt-get install cwebx
Raspbian
apt-get install cwebx

cwebx

C/C++ literate programming system (Marc van Leeuwen's version)

This version is a complete rewrite of Levy & Knuth's version of CWEB. It uses a slightly different syntax from the L&K version, but provides a compatibility mode allowing L&K CWEB sources to be processed, producing similar (though not necessarily identical) output. CWEB allows you to write documents which can be used simultaneously as C/C++ programs and as TeX documentation for them. The philosophy behind CWEB is that programmers who want to provide the best possible documentation for their programs need two things simultaneously: a language like TeX for formatting, and a language like C for programming. Neither type of language can provide the best documentation by itself. But when both are appropriately combined, we obtain a system that is much more useful than either language separately.