Rahul Sharma (Editor)

CWEB

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Designed by
  
Donald Knuth

Paradigm
  
Literate, imperative (procedural), structured

Developer
  
Donald Knuth & Silvio Levy

First appeared
  
1987; 30 years ago (1987)

Stable release
  
3.67 / October 24, 2006; 10 years ago (2006-10-24)

Typing discipline
  
Static, weak, manifest, nominal

CWEB is a computer programming system created by Donald Knuth and Silvio Levy as a follow-up to Knuth's WEB literate programming system, using the C programming language (and to a lesser extent the C++ and Java programming languages) instead of Pascal.

Like WEB, it consists of two primary programs: CTANGLE, which produces compilable C code from the source texts, and CWEAVE, which produces nicely-formatted printable documentation using TeX.

Features

  • Can enter manual TeX code as well as automatic.
  • Make formatting of C code for pretty printing.
  • Can define sections, and can contain documentation and codes, which can then be included into other sections.
  • Write the header code and main C code in one file, and can reuse the same sections, and then it can be tangled into multiple files for compiling.
  • Include files.
  • Change files, which can be automatically merged into the code when compiling/printing.
  • Produces index of identifiers and section names in the printout.
  • References

    CWEB Wikipedia