1 #ifndef _C4_YML_PARSE_HPP_
2 #define _C4_YML_PARSE_HPP_
4 #ifndef _C4_YML_COMMON_HPP_
13 template<
class EventHandler>
class ParseEngine;
14 struct EventHandlerTree;
179 #define RYML_DONT_PARSE_SUBSTR_IN_ARENA "" \
180 "Do not pass a (mutable) substr to parse_in_arena(); " \
181 "if you have a substr, it should be parsed in place. " \
182 "Consider using parse_in_place() instead, or convert " \
183 "the buffer to csubstr prior to calling. This function " \
184 " is deliberately left undefined, so that calling it " \
185 "will cause a linker error."
Common utilities and infrastructure used by ryml.
void parse_in_arena(Parser *parser, csubstr filename, csubstr yaml, Tree *t, id_type node_id)
(1) parse YAML into an existing tree node. The filename will be used in any error messages arising du...
#define RYML_DONT_PARSE_SUBSTR_IN_ARENA
void parse_json_in_arena(Parser *parser, csubstr filename, csubstr json, Tree *t, id_type node_id)
(1) parse JSON into an existing tree node. The filename will be used in any error messages arising du...
void parse_json_in_place(Parser *parser, csubstr filename, substr json, Tree *t, id_type node_id)
(1) parse JSON into an existing tree node. The filename will be used in any error messages arising du...
void parse_in_place(Parser *parser, csubstr filename, substr yaml, Tree *t, id_type node_id)
(1) parse YAML into an existing tree node.
ParseEngine< EventHandlerTree > Parser
This is the main ryml parser, where the parser events are handled to create a ryml tree.
id_type estimate_tree_capacity(csubstr src)
Quickly inspect the source to estimate the number of nodes the resulting tree is likely have.
RYML_ID_TYPE id_type
The type of a node id in the YAML tree; to override the default type, define the macro RYML_ID_TYPE t...