[tex-k] [WEB] Compile TANGLE with Free Pascal
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4 bytes
Desc: not available
More information about the tex-k