This articlerelies excessively onreferences toprimary sources. Please improve this article by addingsecondary or tertiary sources. Find sources: "Web" programming system – news ·newspapers ·books ·scholar ·JSTOR(October 2017) (Learn how and when to remove this message) |
Web, traditionally styled WEB, is acomputer programming system created byDonald Knuth as the first implementation of what he called "literate programming":[1] his idea that one could createsoftware as works ofliterature, by embeddingsource code in descriptive text, rather than the reverse. Unlike standard programming practice which relegates documentation to comments, the WEB approach is to write an article to document the making of the source code, and to include all the source code in that article, so as to be compilable therefrom.
The common practice in mostprogramming languages is that the primary text is source code, optionally supplemented by descriptive text in the form of comments. Knuth proposed that making the descriptive text primary was putting things in an order more convenient for human readers, rather than the order demanded bycompilers.[2]
Much like TeX articles, the Web source text is divided into sections according to documentation flow. For example, in CWEB, code sections are seamlessly intermixed in the line of argumentation.[3]
The original WEB systemdepends onPascal and comprises two programs:
Others:
The most significant programs written in Web areTeX andMetafont. Modern TeX distributions however use another program calledWeb2C to convert Web source to C.
This sectiondoes notcite anysources. Please helpimprove this section byadding citations to reliable sources. Unsourced material may be challenged andremoved.(October 2025) (Learn how and when to remove this message) |
| CWEB | |
|---|---|
| Paradigm | Literate,imperative (procedural),structured |
| Designed by | Donald Knuth |
| Developer | Donald Knuth &Silvio Levy |
| First appeared | 1987; 38 years ago (1987) |
| Stable release | 3.67 / October 24, 2006; 19 years ago (2006-10-24) |
| Typing discipline | Static,weak,manifest,nominal |
| OS | Cross-platform (multi-platform) |
| License | customfree-software license |
| Filename extensions | .w |
| Website | www-cs-faculty |
| Influenced by | |
| WEB,TeX | |
| Influenced | |
| noweb | |
CWEB is acomputer programming system created byDonald Knuth andSilvio Levy as a follow-up to Knuth'sWEBliterate programming system, using theC programming language (and to a lesser extent theC++ andJava programming languages) instead ofPascal.
Like WEB, it consists of two primary programs:
#line directive so that any warnings or errors refer to the .w source.