Knuth 的 WEB 是什么?

What is Knuth's WEB?

我一直在试图弄清楚 Donald Knuth 的 WEB 是什么,但它真的很矛盾。我可以从网页上了解到它类似于 doxygen,但我正在阅读的所有资源都坚持认为它是一种编程语言。但是,它看起来不像我见过的任何编程语言。

那么WEB到底是什么?是否有一些文档解释它?

令人惊讶的问题,因为没有什么比快速搜索更不容易找到的了:

来自 https://en.wikipedia.org/wiki/WEB 的维基百科页面:

WEB is a computer programming system created by Donald E. Knuth as the first implementation of what he called "literate programming": the idea that one could create software as works of literature, by embedding source code inside descriptive text, rather than the reverse (as is common practice in most programming languages), in an order that is convenient for exposition to human readers, rather than in the order demanded by the compiler.

WEB consists of two secondary programs: TANGLE, which produces compilable Pascal code from the source texts, and WEAVE, which produces nicely-formatted, printable documentation using TeX.

CWEB is a version of WEB for the C programming language, while noweb is a separate literate programming tool, which is inspired by WEB (as reflected in the name) and which is language agnostic.

The most significant programs written in WEB are TeX and Metafont. Modern TeX distributions use another program Web2C to convert WEB source to C.

作者强烈推荐的书中有更多信息:

文学编程(语言和信息研究中心 - 讲义)平装本 – 1992 年 6 月 1 日

ISBN-13:978-0937073803 ISBN-10:0937073806

查看 Amazon.com 或更好的图书评论,购买图书并开始阅读。