Commit d660fd4e authored by Brice Videau's avatar Brice Videau
Browse files

Tentative implementation of self evaluating AST.

parent a692f4b3
......@@ -45,6 +45,7 @@ enum ccs_error_e {
CCS_OUT_OF_BOUNDS,
CCS_SAMPLING_UNSUCCESSFUL,
CCS_ENOMEM,
CCS_UNSUPPORTED_OPERATION,
CCS_ERROR_MAX,
CCS_ERROR_FORCE_32BIT = INT_MAX
};
......
......@@ -74,6 +74,20 @@ ccs_expression_eval(ccs_expression_t expression,
ccs_datum_t *values,
ccs_datum_t *result);
extern ccs_error_t
ccs_expression_list_eval_node(ccs_expression_t expression,
ccs_configuration_space_t context,
ccs_datum_t *values,
size_t index,
ccs_datum_t *result);
extern ccs_error_t
ccs_expression_get_num_nodes(ccs_expression_t expression,
size_t *num_nodes_ret);
extern ccs_error_t
ccs_expression_get_type(ccs_expression_t expression,
ccs_expression_type_t *type_ret);
// Conditions
extern ccs_error_t
ccs_create_condition(ccs_hyperparameter_t hyperparameter,
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment