web2w – Converting TeX from WEB to cweb
This package contains a project to convert the TeX source code written by Donald E. Knuth as a WEB into a cweb.
A WEB is a literate program, i.e. a program which is written
as a form of literature and consequently published as a book.
Of course there is a way of converting such a piece of literature
into an ordinary program: it contains Pascal code.
Over the years, the support for Pascal as a major programming language has decreased and Pascal was replaced by C as the system programming language of choice. Consequently, WEB was replaced by cweb, leading to the obvious question: can we convert the TeX source code to cweb. And the answer is: yes and no.
No, because TeX is rather a large program, so translating it manually is very expensive, and translating literature by means of an automatic process is not feasible either.
Yes, because the program contained in this project, a literate program itself, is specifically tailored to the TeX source code and achieves a good approximation to such a translation.
|Licenses||GNU General Public License, version 3 or newer|
|Copyright||2017 Martin Ruckert|
Download the contents of this package in one zip archive (1.5M).
Maybe you are interested in the following packages as well.
- aweb: Web system for programs written in Ada
- clip: A language-independent literate programming tool
- spiderweb: A tool for building WEB systems
- tweb: A web system for TeX macro sources