A Prolog quine #1499
triska
started this conversation in
Show and tell
A Prolog quine
#1499
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear all,
since #301 and several related issues involving
writeq/1
are now nicely resolved, and due to Scryer Prolog's convenient string handling, we are able to define a very readable quine in Prolog! I have uploaded such a Prolog quine at:https://www.metalevel.at/various/quine.pl
To try it, download the program and run it with Scryer Prolog using:
The only result of the program is that it emits its own source code on the terminal.
I bootstrapped
quine.pl
fromquinebs.pl
, avaliable from:https://www.metalevel.at/various/quinebs.pl
Please see the included instructions for more details.
Enjoy, and thank you a lot for making this possible!
All the best,
Markus
Beta Was this translation helpful? Give feedback.
All reactions