knuth - 什么是 Knuth 的 WEB?

标签 knuth

我一直在想弄清楚唐纳德·克努斯 (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 或更好地查看这本书的评论,购买这本书并开始阅读。

关于knuth - 什么是 Knuth 的 WEB?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31331971/

相关文章:

algorithm - 数独算法 X 的时间复杂度是多少?

algorithm - 目的是通过内存操作将 MMIX 汇编中的最低有效位设置为 0?

knuth - "Man Or Boy"Knuth 测试如何进行?

python - 使用最小元素比较对 5 个元素进行排序

java - 如何在 Java 中为 shellsort 正确实现 Knuth 序列?

r - 在 R 中实现算法 X

literate-programming - 在 Windows 中读取 CWEB 格式的代码的最佳方式是什么?

algorithm - 字数 : how inefficient is McIlroy's solution?