mundane topics...
mundane topics...
Posted Jan 2, 2025 15:43 UTC (Thu) by eru (subscriber, #2753)In reply to: mundane topics... by anselm
Parent article: An Algol 68 front end for GCC
Knuth didn't actually use pure Pascal. The code is in the "Web" language, which combines code and documentation. This is then run through a pre-processor called "Tangle" to produce the compilable code. This can handle variations in compilers.
https://ctan.org/tex-archive/systems/knuth/dist/web
As an another example of workarounds, there is the book "Software Tools in Pascal" by Kernighan and Plauger (1981), where some deficiencies of Pascal are papered over with a m4-like macro processor, source included in the book. I read this decades ago, but have forgotten how it was bootstrapped.
