[m-users.] Example of foreign function interface

Left Right olegsivokon at gmail.com
Fri Apr 21 15:35:11 AEST 2017


Thank you!

On Fri, Apr 21, 2017 at 2:16 AM, Julien Fischer <jfischer at opturion.com> wrote:
>
>
> 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.
>
> Julien.


More information about the users mailing list