|
Hyperon C
|
A table of callback functions to implement custom atom parsing. More...
#include <hyperon.h>
Public Attributes | |
| atom_t(* | construct_atom )(const char *str, void *context) |
| Creates a new Atom based the provided text. | |
| void(* | free_context )(void *context) |
| Frees the context, passed to tokenizer_register_token(), along with all other associated resources. | |
A table of callback functions to implement custom atom parsing.
| atom_t(* token_api_t::construct_atom) (const char *str, void *context) |
Creates a new Atom based the provided text.
| [in] | str | A pointer to a C-style text string, that matched the associated regular expression |
| [in] | context | A pointer to the context object supplied to tokenizer_register_token() |
| void(* token_api_t::free_context) (void *context) |
Frees the context, passed to tokenizer_register_token(), along with all other associated resources.
| [in] | context | The pointer to the context to free |