macOS
brew install cweblocal Homebrew formula metadata
brew
Literate documentation system for C, C++, and Java. Version 4.12.2 via Homebrew; verified from local package data.
install
brew install cweblocal Homebrew formula metadata
overview
Literate documentation system for C, C++, and Java
history
CWEB is Donald Knuth and Silvio Levy's literate-programming system for C, C++, and Java, pairing TeX documentation with source extraction through cweave and ctangle.
Knuth's official page explains that WEB originated while he wrote TeX, and that Silvio Levy adapted WEB to C in 1987. Knuth and Levy then revised and enhanced CWEB, including support for C++, ANSI C, and later Java-oriented use.
CWEB has stayed relevant less as a mass-market build tool than as a durable literate-programming reference implementation. The current GitHub project describes several decades of accumulated experience and treats the repository partly as software archaeology for original Levy/Knuth releases.
CWEB authors write .w files that mix explanation, TeX markup, and program fragments. ctangle extracts compilable source, while cweave produces typeset documentation for humans.
For package nerds, CWEB is a bridge between TeX culture and systems programming: it packages a historically important programming methodology, a stable pair of classic command-line tools, and a living archive of CWEB releases.
security posture
No matching local secret-handling manifest was found for cweb. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
ctangle | cli | global executable | |
cweave | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/ascherer/cweb
install metadata
| Package key | brew:cweb |
|---|---|
| Version | 4.12.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/cweb |
| Homepage | https://cs.stanford.edu/~knuth/cweb.html |
| Repository | https://github.com/ascherer/cweb |
| Upstream docs | https://cs.stanford.edu/~knuth/cweb.html |
| License | Knuth-CTAN |
| Source archive | https://github.com/ascherer/cweb/archive/refs/tags/cweb-4.12.2.tar.gz |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cweb |
| Version Scheme | 0 |
| Revision | 0 |
| Conflicts With |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.