Clingo
Loading...
Searching...
No Matches
Scripting Support for Grounding

Support for calling external functions during grounding and customizing the main solving loop. More...

Classes

struct  clingo_script
 Custom scripting language to run functions during grounding. More...
 

Typedefs

typedef struct clingo_script clingo_script_t
 Custom scripting language to run functions during grounding.
 

Functions

CLINGO_VISIBILITY_DEFAULT bool clingo_script_register (clingo_lib_t *lib, clingo_script_t const *script, void *data)
 Add a custom scripting language to a control object.
 

Detailed Description

Support for calling external functions during grounding and customizing the main solving loop.

Function Documentation

◆ clingo_script_register()

CLINGO_VISIBILITY_DEFAULT bool clingo_script_register ( clingo_lib_t lib,
clingo_script_t const *  script,
void *  data 
)

Add a custom scripting language to a control object.

Parameters
[in]libthe library object to register the script with
[in]scriptstruct with functions implementing the language
[in]datauser data to pass to callbacks in the script
Returns
the result code