Clingo
|
Script providing code execution, main, and callbacks. More...
#include <solver.hh>
Public Member Functions | |
void | main (Solver &slv) |
Run the main function. | |
void | exec (std::string_view code) |
Execute the given code. | |
![]() | |
virtual | ~ScriptCallback ()=default |
Virtual destructor. | |
auto | callable (std::string_view name, size_t args) -> bool |
Check if the function with the given name and number of arguments is callable. | |
void | call (Location const &loc, std::string_view name, SymbolSpan args, SymbolVec &out) |
Call the function with the given name and arguments. | |
Script providing code execution, main, and callbacks.
This interface should be implemented by custom scripts.