Clingo C API
C API for clingo providing high level functions to control grounding and solving.
|
Functions and data structures to work with program ASTs.
For an example, see ast.c.
Typedefs | |
typedef int | clingo_ast_comparison_operator_t |
typedef int | clingo_ast_sign_t |
typedef int | clingo_ast_term_type_t |
typedef struct clingo_ast_unary_operation | clingo_ast_unary_operation_t |
typedef struct clingo_ast_binary_operation | clingo_ast_binary_operation_t |
typedef struct clingo_ast_interval | clingo_ast_interval_t |
typedef struct clingo_ast_function | clingo_ast_function_t |
typedef struct clingo_ast_pool | clingo_ast_pool_t |
typedef struct clingo_ast_term | clingo_ast_term_t |
typedef int | clingo_ast_unary_operator_t |
typedef int | clingo_ast_binary_operator_t |
typedef struct clingo_ast_csp_product_term | clingo_ast_csp_product_term_t |
typedef struct clingo_ast_csp_sum_term | clingo_ast_csp_sum_term_t |
typedef struct clingo_ast_csp_guard | clingo_ast_csp_guard_t |
typedef struct clingo_ast_csp_literal | clingo_ast_csp_literal_t |
typedef struct clingo_ast_id | clingo_ast_id_t |
typedef struct clingo_ast_comparison | clingo_ast_comparison_t |
typedef int | clingo_ast_literal_type_t |
typedef struct clingo_ast_literal | clingo_ast_literal_t |
typedef int | clingo_ast_aggregate_function_t |
typedef struct clingo_ast_aggregate_guard | clingo_ast_aggregate_guard_t |
typedef struct clingo_ast_conditional_literal | clingo_ast_conditional_literal_t |
typedef struct clingo_ast_aggregate | clingo_ast_aggregate_t |
typedef struct clingo_ast_body_aggregate_element | clingo_ast_body_aggregate_element_t |
typedef struct clingo_ast_body_aggregate | clingo_ast_body_aggregate_t |
typedef struct clingo_ast_head_aggregate_element | clingo_ast_head_aggregate_element_t |
typedef struct clingo_ast_head_aggregate | clingo_ast_head_aggregate_t |
typedef struct clingo_ast_disjunction | clingo_ast_disjunction_t |
typedef struct clingo_ast_disjoint_element | clingo_ast_disjoint_element_t |
typedef struct clingo_ast_disjoint | clingo_ast_disjoint_t |
typedef int | clingo_ast_theory_term_type_t |
typedef struct clingo_ast_theory_function | clingo_ast_theory_function_t |
typedef struct clingo_ast_theory_term_array | clingo_ast_theory_term_array_t |
typedef struct clingo_ast_theory_unparsed_term | clingo_ast_theory_unparsed_term_t |
typedef struct clingo_ast_theory_term | clingo_ast_theory_term_t |
typedef struct clingo_ast_theory_unparsed_term_element | clingo_ast_theory_unparsed_term_element_t |
typedef struct clingo_ast_theory_atom_element | clingo_ast_theory_atom_element_t |
typedef struct clingo_ast_theory_guard | clingo_ast_theory_guard_t |
typedef struct clingo_ast_theory_atom | clingo_ast_theory_atom_t |
typedef int | clingo_ast_head_literal_type_t |
typedef struct clingo_ast_head_literal | clingo_ast_head_literal_t |
typedef int | clingo_ast_body_literal_type_t |
typedef struct clingo_ast_body_literal | clingo_ast_body_literal_t |
typedef int | clingo_ast_theory_operator_type_t |
typedef struct clingo_ast_theory_operator_definition | clingo_ast_theory_operator_definition_t |
typedef struct clingo_ast_theory_term_definition | clingo_ast_theory_term_definition_t |
typedef struct clingo_ast_theory_guard_definition | clingo_ast_theory_guard_definition_t |
typedef int | clingo_ast_theory_atom_definition_type_t |
typedef struct clingo_ast_theory_atom_definition | clingo_ast_theory_atom_definition_t |
typedef struct clingo_ast_theory_definition | clingo_ast_theory_definition_t |
typedef struct clingo_ast_rule | clingo_ast_rule_t |
typedef struct clingo_ast_definition | clingo_ast_definition_t |
typedef struct clingo_ast_show_signature | clingo_ast_show_signature_t |
typedef struct clingo_ast_show_term | clingo_ast_show_term_t |
typedef struct clingo_ast_minimize | clingo_ast_minimize_t |
typedef int | clingo_ast_script_type_t |
typedef struct clingo_ast_script | clingo_ast_script_t |
typedef struct clingo_ast_program | clingo_ast_program_t |
typedef struct clingo_ast_external | clingo_ast_external_t |
typedef struct clingo_ast_edge | clingo_ast_edge_t |
typedef struct clingo_ast_heuristic | clingo_ast_heuristic_t |
typedef struct clingo_ast_project | clingo_ast_project_t |
typedef int | clingo_ast_statement_type_t |
typedef struct clingo_ast_statement | clingo_ast_statement_t |
typedef bool | clingo_ast_callback_t(clingo_ast_statement_t const *, void *) |
Functions | |
bool | clingo_parse_program (char const *program, clingo_ast_callback_t *callback, void *callback_data, clingo_logger_t *logger, void *logger_data, unsigned message_limit) |
Parse the given program and return an abstract syntax tree for each statement via a callback. More... | |
bool clingo_parse_program | ( | char const * | program, |
clingo_ast_callback_t * | callback, | ||
void * | callback_data, | ||
clingo_logger_t * | logger, | ||
void * | logger_data, | ||
unsigned | message_limit | ||
) |
Parse the given program and return an abstract syntax tree for each statement via a callback.
[in] | program | the program in gringo syntax |
[in] | callback | the callback reporting statements |
[in] | callback_data | user data for the callback |
[in] | logger | callback to report messages during parsing |
[in] | logger_data | user data for the logger |
[in] | message_limit | the maximum number of times the logger is called |