The Mer Wiki now uses your Mer user account and password (create account on https://bugs.merproject.org/)
User:Jhamalai
From Mer Wiki
Misc
Decompiling swi-prolog plc
Sometimes it may be useful to decompile compiled prolog plc file. Short steps how that can be done, for example.
- Find a environment suitable for your compiled plc file, you are going to do the work there.
- In your environment check your swipl version and download matching source package from swi-prolog page
- Unpack the package and copy content from
library
directory to your environment.listing.pl
is the important one. Listing - Run swi-prolog and load your plc, prolog is a good candidate for initialization goal.
$ swipl -x compiled.plc -g prolog
- Load listing module.
1 ?- [listing].
-
listing.
lists user module, and you can usemodule:listing.
to list from different modules.