Files
mercury/samples/c_interface
Julien Fischer 9c96387183 Fix formatting of sample programs.
samples/Mmakefile:
    Add the beer program to list of targets.

samples/*.m:
    Convert (C->T;E) to (if C then T else E).

    Delete trailing whitespace.

    Use predmode syntax instead of separate pred and mode
    declarations.

samples/interpreter.m:
    Fix up one predicate that had some clauses that used
    DCGs and others that used state variables.

    Don't use the name 'IO' for something that isn't the I/O state.

samples/diff/*.m:
samples/c_interface/c_calls_mercury/mercury_main.m:
samples/c_interface/short_example.m:
    Delete trailing whitespace.
2015-12-14 16:06:13 +11:00
..

This directory contains some examples of mixed Mercury/C programs using
the foreign language interface.

short_example.m                 A short example of Mercury code calling C.

mercury_calls_c                 A detailed example of Mercury code
                                calling C code.

c_calls_mercury                 A detailed example of C code calling
                                Mercury code.

mercury_calls_cplusplus         A detailed example of Mercury code
                                calling C++ code.

cplusplus_calls_mercury         A detailed example of C++ code calling
                                Mercury code.

mercury_calls_fortran           This directory contains a detailed
                                example of Mercury code calling Fortran code.

simpler_c_calls_mercury         A simpler example of C code calling Mercury.

simpler_cplusplus_calls_mercury A simpler example of C++ code calling
                                Mercury.

standalone_c			Another example of C code calling Mercury
				code this time use the compiler's 
				`--generate-standalone-interface' option.