[m-users.] Example of foreign function interface
jfischer at opturion.com
Fri Apr 21 09:16:59 AEST 2017
On Fri, 21 Apr 2017, Zoltan Somogyi wrote:
> On Thu, 20 Apr 2017 22:42:53 +0300, Left Right <olegsivokon at gmail.com> wrote:
>> As a learning exercise, I would like to write Mercury bindings for an
>> NLP library: link-grammar. Can you, please point me to some examples
>> (perhaps in Mercury's own code) of wrapping calls to C library?
> Just search for foreign_proc in the Mercury standard library and in the extras.
There are also some examples of how to use the foreign language
interface with C in the directory samples/c_interface.
More information about the users