Files
mercury/samples/c_interface/README.md
Julien Fischer 01061532ab Add short example of Java interface.
samples/java_interface/short_example.m:
    A Java version of the short example.

samples/java_interface/README.md:
    Add an entry for the new example.

samples/c_interface/README.md:
samples/csharp_interface/README.md:
    Fix wording.
2022-01-20 03:42:56 +11:00

33 lines
1.2 KiB
Markdown

Mercury C Interface Examples
============================
This directory contains some examples of mixed Mercury/C/C++/Fortran programs
using the foreign language interface.
* [short_example.m](short_example.m) -- A short example of Mercury code
calling C code.
* [mercury_calls_c](mercury_calls_c) -- A detailed example of Mercury code
calling C code.
* [c_calls_mercury](c_calls_mercury) -- A detailed example of C code calling
Mercury code.
* [mercury_calls_cplusplus](mercury_calls_cplusplus) -- A detailed example of
Mercury code calling C++ code.
* [cplusplus_calls_mercury](cplusplus_calls_mercury) -- A detailed example of
C++ code calling Mercury code.
* [mercury_calls_fortran](mercury_calls_fortran) -- This directory contains a
detailed example of Mercury code calling Fortran code.
* [simpler_c_calls_mercury](simpler_c_calls_mercury) -- A simpler example of C
code calling Mercury.
* [simpler_cplusplus_calls_mercury](simpler_cplusplus_calls_mercury) -- A
simpler example of C++ code calling Mercury.
* [standalone_c](standalone_c) -- Another example of C code calling Mercury
code this time using the compiler's `--generate-standalone-interface` option.