#include <stdbool.h>
#include <inttypes.h>
#include <hubbub/errors.h>
#include <hubbub/functypes.h>
#include <hubbub/tree.h>
#include <hubbub/types.h>
#include "tokeniser/tokeniser.h"
Go to the source code of this file.
◆ hubbub_treebuilder
◆ hubbub_treebuilder_optparams
Hubbub treebuilder option parameters.
◆ hubbub_treebuilder_opttype
Hubbub treebuilder option types.
◆ hubbub_treebuilder_opttype
Hubbub treebuilder option types.
| Enumerator |
|---|
| HUBBUB_TREEBUILDER_ERROR_HANDLER | |
| HUBBUB_TREEBUILDER_TREE_HANDLER | |
| HUBBUB_TREEBUILDER_DOCUMENT_NODE | |
| HUBBUB_TREEBUILDER_ENABLE_SCRIPTING | |
◆ hubbub_treebuilder_create()
Create a hubbub treebuilder.
- Parameters
-
| tokeniser | Underlying tokeniser instance |
| treebuilder | Pointer to location to receive treebuilder instance |
- Returns
- HUBBUB_OK on success, HUBBUB_BADPARM on bad parameters HUBBUB_NOMEM on memory exhaustion
◆ hubbub_treebuilder_destroy()
Destroy a hubbub treebuilder.
- Parameters
-
| treebuilder | The treebuilder instance to destroy |
- Returns
- HUBBUB_OK on success, appropriate error otherwise
◆ hubbub_treebuilder_setopt()
Configure a hubbub treebuilder.
- Parameters
-
| treebuilder | The treebuilder instance to configure |
| type | The option type to configure |
| params | Pointer to option-specific parameters |
- Returns
- HUBBUB_OK on success, appropriate error otherwise.