ericco@ssl.berkeley.edu (Eric C. Olson) (11/01/90)
I've read with interest the tread on tgrind and TeX, which naturally led me to look into web. Web's ominous EPO (expert programmer's only) introduction got me wondering. Does the world need yet another procedural language? Web uses three languages to provide solutions to software problems. It seems better to have one than three. And if I had to choose between embedding Pascal in TeX, or Tex in Pascal, I think I'd choose the former. It seems that formatting text requires much more detailed specifications than a code generator requires. Would it be possible to generate, say, a pair of Latex document styles, one which would create a document, and another which would generate C source -- but both styles would parse the same syntax. For example, these styles would require a \for command perhaps taking 4 arguments as in C (initialize;condition;next){expression}. In the first style this would generate a nice report. In the second style it would generate the for loop source in C -- or any other language. Any ideas, Eric -- Eric ericco@ssl.berkeley.edu