[tex-k] [WEB] Compile TANGLE with Free Pascal

Wolfgang Helbig helbig at mailbox.org
Thu Aug 5 17:03:03 CEST 2021

Welcome to the club! My little distribution tex-fpc is based on free 
pascal as well. You might want to compare the tangle.ch files.
I don't think there is a bug in tangle.web. tangle only tries to match 
the first line of a change block. If it found one, it compares the other 
lines and complains if they don't match. c.f. the web user manual.
> Dear all,
> Today I succeeded to compile the original TANGLE.WEB with the Free 
> Pascal compiler (https://www.freepascal.org). The change file 
> https://github.com/ascherer/web/blob/master/tangle.ch contains the 
> necessary modifications to adapt Knuth's Pascal-H code to the 
> conventions of FPC.
> Starting with the TANGLE executable of TeX Live, the incantation
> $> tangle -uppercase tangle
> $> fpc tangle.p
> $> ./tangle tangle.web tangle.ch tangle.pas tangle.pool
> produces identical source files TANGLE.P and TANGLE.PAS.
> Note that the "original" TANGLE(.WEB) must contain a bug, because both 
> variants of the TANGLE executable issue an error message '1 of the 
> preceding lines failed to match' if I add line 306 of TANGLE.WEB into 
> the TANGLE.CH file.  Otherwise, I'm happy with the result.
> Cheers,
> Andreas

Wolfgang Helbig
Stauferstr. 22
71334 Waiblingen
07151-920 227

-------------- next part --------------
A non-text attachment was scrubbed...
Name: helbig.vcf
Type: text/x-vcard
Size: 4 bytes
Desc: not available
URL: <https://tug.org/pipermail/tex-k/attachments/20210805/3fc3172a/attachment.vcf>

More information about the tex-k mailing list.