Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!cs.utexas.edu!wuarchive!mit-eddie!uw-beaver!milton!khan From: khan@milton.acs.washington.edu (Bob "Genghis" Khan) Newsgroups: comp.lang.c Subject: C version of WEB (was: What is Literate Programming?) Keywords: cnoweb WEB Knuth documentation Message-ID: <1389@milton.acs.washington.edu> Date: 15 Jan 90 05:27:58 GMT References: <1990Jan12.021006.2395@agate.berkeley.edu> Reply-To: khan@milton.acs.washington.edu (Erik Seaberg) Organization: Barbarian Driving School, University of Washington, Seattle Lines: 26 In article <1990Jan12.021006.2395@agate.berkeley.edu> cotner@brahms.berkeley.edu (Carl Cotner) writes: >... I believe that TeX is stored in a web file, which combines source code >with documentation, in accordance with his belief that the 2 should be >closely integrated. > >I'm very interested in this. I would look into web, only I believe that >web will extract a Pascal file. I'm more interested in working on a >C based project. Is there a C version of WEB? I admit I haven't made use of it beyond trying the demo document, but I there's a file called cnoweb.tex written by a Jim Fox (fox@cac.washington.edu) here at UW. It sets code in cmtt (fixed-pitch typewriter style) and allows comments in cmr (roman, with any symbols and math formulae (!) you like); however, it doesn't map assignments to special symbols (WEB turns := into TeX's arrow symbol ...) Since all TeX commands go in comments, a cnoweb-formatted source will compile. There's a demo program called pf.c also, they are available by anonymous FTP on blake.u.washington.edu in directory /pub/TeX/cnoweb. If anyone can't do anon-FTP, I'll mail them to you. ---------------------------------------------------------------------- "indecipherable strangers handing out inexplicable humiliation and an unidentified army of horsemen laughing at him in his head ..." -- Douglas Adams Erik Seaberg (khan@milton.u.washington.edu)