The YAP Foreign Language

The Foreign Language Interfaces.

YAP provides the user with three facilities for writing predicates in a language other than Prolog. Under Unix systems, most language implementations were linkable to C, and the first interface exported the YAP machinery to the C language. YAP also implements most of the SWI-Prolog foreign language interface. This gives portability with a number of SWI-Prolog packages and avoids garbage collection by using Term Handles or Slots. Last, a new C++ based interface is being designed to work with the swig (www.swig.org) interface compiler.