Skip to content

Foreign Language Interface

Kayo Tei edited this page Feb 20, 2026 · 1 revision

SLIM allows LMNtal programs to call C functions.

Foreign-Language Interface in SLIM

SLIM allows LMNtal programs to call functions written in C. An LMNtal atom

'$callback'(function_name, arg1, arg2, ...)

calls the C function function_name with the specified arguments. Examples of callbacks can be found in the library programs located in the $LMNTAL_HOME/lib directory, and the corresponding C functions can be found in the $LMNTAL_HOME/src/ext directory.

Clone this wiki locally