Was intrigued by this SO question, and so I’d like to try implement a Turing machine simulator in pure Prolog. Was thinking to start from some existing code, and attempt to ‘purify’ it, it required. But
It seems that the package was hosted in a Mercurial repository on Bitbucket, which is no longer available, as Bitbucket recently dropped support for Mercurial and deleted all remaining Mercurial repos from their site. Thankfully there are some archives of public Bitbucket Mercurial repos from before they were deleted, such as this one from Software Heritage: https://bitbucket-archive.softwareheritage.org/
(1) I remember that I wrote a deterministic turing machine interpreter
in Prolog more than 20 years ago, which is still in pac/prolog/misc/turing.pl
of my package pac as a toy programming. It works as CGI in Japanese
As it is not for non-deterministic TM, it would be useless for your purpose.
(2) Although it is not related to Prolog but to Java (?), the following is
a book on ND TM.
Turing’s World 3.0 for Mac: An Introduction to Computability Theory (Center for the Study of Language and Information Publication Lecture Notes)
Jon Barwise, John Etchemendy