I’ve stared library(prolog_code)
to collect predicates I’ve written 25 times to reason about Prolog code. Please comment on the naming and primitives in this library. The name of the library itself is also not ideal. All more recent libraries that are more intended to deal with the Prolog system than applications are named prolog_* and I wasn’t happy about meta, not reflexive and was out of ideas
So, if you know about commonly used predicates for code manipulation that should belong here, you have a more conventional name or more conventional semantics, let me know.
The current file is at is on github