CTAN
Comprehensive TeX Archive Network

web2w – Converting from WEB to cweb

This pack­age con­tains a project to con­vert the source code writ­ten by Don­ald E. Knuth as a WEB into a cweb.

A WEB is a lit­er­ate pro­gram, i.e. a pro­gram which is writ­ten as a form of lit­er­a­ture and con­se­quently pub­lished as a book. Of course there is a way of con­vert­ing such a piece of lit­er­a­ture into an or­di­nary pro­gram: it con­tains Pas­cal code.
Over the years, the sup­port for Pas­cal as a ma­jor pro­gram­ming lan­guage has de­creased and Pas­cal was re­placed by C as the sys­tem pro­gram­ming lan­guage of choice. Con­se­quently, WEB was re­placed by cweb, lead­ing to the ob­vi­ous ques­tion: can we con­vert the source code to cweb. And the an­swer is: yes and no.

No, be­cause is rather a large pro­gram, so trans­lat­ing it man­u­ally is very ex­pen­sive, and trans­lat­ing lit­er­a­ture by means of an au­to­matic pro­cess is not fea­si­ble ei­ther.

Yes, be­cause the pro­gram con­tained in this project, a lit­er­ate pro­gram it­self, is specif­i­cally tai­lored to the source code and achieves a good ap­prox­i­ma­tion to such a trans­la­tion.

Sources /web/web2w
Doc­u­men­ta­tion
Ver­sion 0.4
Li­cense GNU Gen­eral Public Li­cense, ver­sion 3 or newer
Main­tainer Martin Ruck­ert
Topics lit­er­ate pro­gram­ming

Down­load the con­tents of this pack­age in one zip archive (1.5M).

Com­mu­nity Com­ments

Load­ing...

An­nounce­ments

Here you can see a re­spec­tive di­a­gram in newer browsers.

more

Guest Book Sitemap Contact Contact Author