This is a Pascal compiler that targets WebAssembly, designed specifically to compile TeX.
The following assumes you have TeX running on your machine (e.g., that
tangle is available).
Download a clean copy of the TeX WEB sources.
Produce the Pascal source by tangling.
tangle -underline tex.web
You will now have the Pascal source
tex.p along with
tex.pool which contains the strings.
tex.p sources to get the the WebAssembly binary
npm install npm run-script build node compile.js tex.p
plain.fmt and a corresponding memory dump.
sample.tex by running