Package libecoli-devel

Development files for libecoli

https://github.com/rjarry/libecoli

This package contains development files for libecoli.

Version: 0.11.7

Library Functions

ec_comp Create an empty completion object (list of completion items).
ec_comp_add_item Add an item in completion list.
ec_comp_count Get the number of completion items.
ec_comp_dump Dump the content of a completions list.
ec_comp_free Free a completion object and all its items.
ec_comp_get_attrs Get completion attributes.
ec_comp_get_cur_group Get current completion group.
ec_comp_get_cur_pstate Get current parsing state of completion.
ec_comp_group_get_attrs Get the completion group attributes.
ec_comp_group_get_node Get the completion group node.
ec_comp_group_get_pstate Get the completion group parsing state.
ec_comp_item_get_completion Get the completion string value of a completion item.
ec_comp_item_get_current Get the current string value (before completion) of a completion item.
ec_comp_item_get_display Get the display string value of a completion item.
ec_comp_item_get_grp Get the group of a completion item.
ec_comp_item_get_node Get the node associated with a completion item.
ec_comp_item_get_str Get the string value of a completion item.
ec_comp_item_get_type Get the type of a completion item.
ec_comp_item_set_completion Set the completion value of an item.
ec_comp_item_set_display Set the display value of an item.
ec_comp_item_set_str Set the completion item string.
ec_comp_iter_first Get the first completion item matching the type.
ec_comp_iter_next Get the next completion item matching the type.
ec_comp_merge Merge items contained in from into to.
ec_complete Get the list of completions from a string input.
ec_complete_child Get the list of completions of a child node.
ec_complete_strvec Get the list of completions from a string vector input.
ec_complete_strvec_expand Return a new string vector based on the provided one using completion to expand non-ambiguous tokens to their full value.
ec_complete_unknown Default node completion callback.
ec_config_bool Create a boolean configuration value.
ec_config_cmp Compare two configurations.
ec_config_count Count the number of elements in a list or dict.
ec_config_dict Create a hash table configuration value.
ec_config_dict_del Remove an element from a hash table configuration.
ec_config_dict_get Get configuration value.
ec_config_dict_set Set a value in a hash table configuration.
ec_config_dump Dump a configuration.
ec_config_dup Duplicate a configuration.
ec_config_free Free a configuration.
ec_config_get_type Get the type of the configuration.
ec_config_i64 Create a signed integer configuration value.
ec_config_key_is_reserved Check if a key name is reserved in a config dict.
ec_config_list Create a list configuration value.
ec_config_list_add Add a config object into a list.
ec_config_list_del Remove an element from a list.
ec_config_list_first Get the first element of a list.
ec_config_list_next Get next element in list.
ec_config_node Create a node configuration value.
ec_config_schema_dump Dump a configuration schema array.
ec_config_schema_lookup Find a schema entry matching the key.
ec_config_schema_sub Get the subschema of a schema entry.
ec_config_schema_type Get the type of a schema entry.
ec_config_schema_validate Validate a configuration schema array.
ec_config_string Create a string configuration value.
ec_config_u64 Create an unsigned configuration value.
ec_config_validate Validate a configuration.
ec_dict Create a hash table.
ec_dict_del Delete an object from the hash table.
ec_dict_dump Dump a hash table.
ec_dict_dup Duplicate a hash table.
ec_dict_free Free a hash table and all its objects.
ec_dict_get Get a value from the hash table.
ec_dict_has_key Check if the hash table contains this key.
ec_dict_iter Iterate the elements in the hash table.
ec_dict_iter_get_key Get a pointer to the key of the current element.
ec_dict_iter_get_val Get the value of the current element.
ec_dict_iter_next Make the iterator point to the next element in the hash table.
ec_dict_len Get the length of a hash table.
ec_dict_set Add/replace an object in the hash table.
ec_editline Create an editline instance with default behavior.
ec_editline_complete Default completion callback used by editline.
ec_editline_curline Get the current edited line.
ec_editline_free Free an editline structure allocated with ec_editline().
ec_editline_get_el Return the wrapped editline instance attached to the ec_editline structure.
ec_editline_get_node Return the ecoli node attached to the editline structure.
ec_editline_gets Get a line interactively (with completion).
ec_editline_interact Interact with the user until exit.
ec_editline_parse Get a line interactively (with completion), and parse it.
ec_editline_set_history Change the history size.
ec_editline_set_node Attach an ecoli node to the editline structure.
ec_editline_set_prompt Set editline prompt.
ec_editline_set_prompt_esc Set editline escaped prompt.
ec_editline_term_size Get terminal width and height.
ec_exit Uninitialize ecoli library.
ec_htable Create a hash table.
ec_htable_del Delete an object from the hash table.
ec_htable_dump Dump a hash table.
ec_htable_dup Duplicate a hash table.
ec_htable_force_seed Force a seed for the hash function.
ec_htable_free Free a hash table and all its objects.
ec_htable_get Get a value from the hash table.
ec_htable_has_key Check if the hash table contains this key.
ec_htable_iter Iterate the elements in the hash table.
ec_htable_iter_get_key Get the key of the current element.
ec_htable_iter_get_key_len Get the key length of the current element.
ec_htable_iter_get_val Get the value of the current element.
ec_htable_iter_next Make the iterator point to the next element in the hash table.
ec_htable_len Get the length of a hash table.
ec_htable_set Add/replace an object in the hash table.
ec_init Initialize ecoli library.
ec_init_register Register an initialization function.
ec_interact_append_chars Get characters to append to the line for a completion.
ec_interact_free_completions Free the array of completion matches.
ec_interact_free_helps Free contextual helps.
ec_interact_get_callback Get callback attached to a parse tree.
ec_interact_get_completions Get completion matches as an array of strings.
ec_interact_get_error_helps Get suggestions after a parsing error for the current line.
ec_interact_get_helps Get contextual helps from the current line.
ec_interact_print_cols Print completion matches as columns.
ec_interact_print_error_helps Print suggestions generated with ec_interact_get_error_helps().
ec_interact_print_helps Print helps generated with ec_interact_get_helps().
ec_interact_set_callback Set callback function on a grammar node.
ec_interact_set_desc Set short description of a grammar node.
ec_interact_set_help Set help on a grammar node.
ec_log Log a formatted string.
ec_log_default_cb Default log handler.
ec_log_fct_register Register a user log function.
ec_log_level_get Get the global log level.
ec_log_level_set Set the global log level.
ec_log_name Return the log name associated with the log type identifier.
ec_log_type_register Register a named log type.
ec_murmurhash3 Calculate a 32-bit murmurhash3.
ec_murmurhash3_add32 Add 32-bit to the hash.
ec_murmurhash3_fmix32 Final mix: force all bits of a hash block to avalanche.
ec_murmurhash3_mix32 Intermediate mix.
ec_murmurhash_rotl32 Hash rotation.
ec_node Create a new node from its type name.
ec_node_any Create a "any" node.
ec_node_attrs Get the attributes dict of the node.
ec_node_bypass A node that does nothing other than calling the child node.
ec_node_bypass_set_child Attach a child to a bypass node.
ec_node_check_type Check the type of a node.
ec_node_clone Clone a grammar node.
ec_node_cond Create a condition node.
ec_node_config_node_list_from_vargs Build a list of config nodes from variable arguments.
ec_node_config_node_list_to_table Build a node table from a node list in an ec_config.
ec_node_desc Get node short description.
ec_node_dump Dump a grammar tree.
ec_node_dynamic Dynamic node where parsing/validation is done in a user-provided callback.
ec_node_dynlist Create a dynlist node.
ec_node_empty This node always matches an empty string vector.
ec_node_expr Create an expression node.
ec_node_expr_add_bin_op Add a binary operator to an expression node.
ec_node_expr_add_parenthesis Add parentheses to an expression node.
ec_node_expr_add_post_op Add a postfix operator to an expression node.
ec_node_expr_add_pre_op Add a prefix operator to an expression node.
ec_node_expr_eval Evaluate a parsed expression.
ec_node_expr_set_val_node Set the value (terminal) node for an expression.
ec_node_file_set_ops Set custom file operations for testing.
ec_node_find Find a node from its identifier string.
ec_node_free Decrement node reference counter and free the node if it is the last reference.
ec_node_from_type Create a new node when the type is known.
ec_node_get_child Get the n-th child of a node.
ec_node_get_children_count Return the number of children for a node.
ec_node_get_config Get the current node configuration.
ec_node_get_type_name Get the type name of a grammar node.
ec_node_id Get node identifier.
ec_node_int Create a signed integer node.
ec_node_int_getval Get the value of a parsed signed integer.
ec_node_iter Create an iterator on a grammar tree.
ec_node_iter_free Free a grammar graph iterator.
ec_node_iter_get_node Get the grammar node referenced by the iterator node.
ec_node_iter_get_parent Get the parent of an iterator node.
ec_node_iter_next Iterate to the next node.
ec_node_many Create a many node that matches its child multiple times.
ec_node_many_set_params Set the parameters of a many node.
ec_node_once This node behaves like its child, but prevents it from being parsed more than once.
ec_node_once_set_child Set the child of a once node.
ec_node_option Create an option node that makes its child optional.
ec_node_option_set_child Set the child of an option node.
ec_node_or Create an empty "or" node.
ec_node_or_add Add a child to an "or" node.
ec_node_priv Get the pointer to the node private area.
ec_node_re Create a regular expression node.
ec_node_re_lex Create a regex-based lexer node.
ec_node_re_lex_add Add a token pattern to a regex lexer node.
ec_node_re_set_regexp Set the regular expression on a regex node.
ec_node_schema_dump Dump the node configuration schema.
ec_node_seq Create an empty sequence node.
ec_node_seq_add Add a child to a sequence node.
ec_node_set_config Set node configuration.
ec_node_sh_lex Create a shell lexer node.
ec_node_sh_lex_expand Create a shell lexer node with variable expansion.
ec_node_str Create a string node that matches a specific string.
ec_node_str_set_str Set the string to match on a string node.
ec_node_subset Create an empty subset node.
ec_node_subset_add Add a child to a subset node.
ec_node_subset_get_min Get the minimum number of children that must match.
ec_node_subset_min Create an empty subset node with a minimum number of children that must match.
ec_node_subset_set_min Set the minimum number of children that must match.
ec_node_type Get the type of a node.
ec_node_type_dump Dump registered node types.
ec_node_type_lookup Lookup node type by name.
ec_node_type_name Get the name of a node type.
ec_node_type_register Register a node type.
ec_node_type_schema Get the config schema of a node type.
ec_node_uint Create an unsigned integer node.
ec_node_uint_getval Get the value of a parsed unsigned integer.
ec_parse Parse a string using a grammar tree.
ec_parse_child Parse a string vector using a grammar tree, from a parent node.
ec_parse_strvec Parse a string vector using a grammar tree.
ec_pnode Create an empty parsing tree.
ec_pnode_count Count node occurrences in a parse subtree.
ec_pnode_del_last_child Unlink and free the last child.
ec_pnode_dump Dump a parsing tree.
ec_pnode_dup Duplicate a parsing tree.
ec_pnode_find Find a node from its identifier.
ec_pnode_find_next Find the next node matching an identifier.
ec_pnode_free Free a parsing tree.
ec_pnode_free_children Remove and free all the children of a parsing tree node.
ec_pnode_get_attrs Get attributes associated with a node in a parsing tree.
ec_pnode_get_first_child Get the first child of a node in the parsing tree.
ec_pnode_get_last_child Get the last child of a node in the parsing tree.
ec_pnode_get_node Get the grammar node corresponding to the parsing node.
ec_pnode_get_parent Get the parent node in the parsing tree.
ec_pnode_get_root Get the root of the parsing tree.
ec_pnode_get_strvec Get the string vector associated with a parsing node.
ec_pnode_len Get the number of strings in the parsed string vector.
ec_pnode_link_child Link a parsing node to a parsing tree.
ec_pnode_matches Check if the parsing tree matches the input.
ec_pnode_next Get the next sibling node.
ec_pnode_unlink_child Remove a child node from parsing tree.
ec_str_is_space Return true if the string contains only whitespace characters.
ec_str_parse_llint Parse a string for a signed integer.
ec_str_parse_ullint Parse a string for an unsigned integer.
ec_str_quote Quote a string, escaping nested quotes.
ec_str_startswith Return 1 if the string starts with the given prefix.
ec_str_wrap Wrap a text to a maximum number of columns.
ec_strcmp_count Count the number of identical characters at the beginning of two strings.
ec_strvec Allocate a new empty string vector.
ec_strvec_add Add a string in a vector.
ec_strvec_cmp Compare two string vectors.
ec_strvec_del_last Delete the last entry in the string vector.
ec_strvec_dump Dump a string vector.
ec_strvec_dup Duplicate a string vector.
ec_strvec_free Free a string vector.
ec_strvec_from_array Allocate a new string vector.
ec_strvec_get_attrs Get the attributes of a vector element.
ec_strvec_len Get the length of a string vector.
ec_strvec_ndup Duplicate a part of a string vector.
ec_strvec_set Set a string in the vector at specified index.
ec_strvec_set_attrs Set the attributes of a vector element.
ec_strvec_sh_lex_str Split a string into multiple tokens following basic shell lexing rules.
ec_strvec_sort Sort the string vector.
ec_strvec_val Get a string element from a vector.
ec_vec Create a new vector.
ec_vec_add_by_ref Add reference to a vector.
ec_vec_add_ptr Add opaque element to a vector.
ec_vec_add_u16 Add uint16_t value to a vector.
ec_vec_add_u32 Add uint32_t value to a vector.
ec_vec_add_u64 Add uint64_t value to a vector.
ec_vec_add_u8 Add uint8_t value to a vector.
ec_vec_dup Duplicate a vector.
ec_vec_free Free a vector and all its contents.
ec_vec_get Get element located at an offset.
ec_vec_ndup Duplicate a portion of a vector.
ec_vlog Log a formatted string.
ec_yaml_export Export an ec_node tree to a YAML formatted stream.
ec_yaml_import Parse a YAML file and build an ec_node tree from it.