Lines Matching full:parser

10 parser and utility functions
19 Libucl is a parser and \f[C]C\f[] API to parse and generate \f[C]ucl\f[]
22 .SS Parser functions
28 it is impossible to use \f[C]libucl\f[] as a streaming parser.
66 .SH PARSER FUNCTIONS
68 Parser functions operates with \f[C]struct\ ucl_parser\f[].
77 Creates new parser with the specified flags:
91 void\ ucl_parser_register_macro\ (struct\ ucl_parser\ *parser,
110 \f[C]false\f[] indicates parsing failure and the parser can be
116 void\ ucl_parser_register_variable\ (struct\ ucl_parser\ *parser,
122 parser to the \f[C]value\f[] string.
127 bool\ ucl_parser_add_chunk\ (struct\ ucl_parser\ *parser,\
133 parser.
134 At the moment, \f[C]libucl\f[] parser is not a streamlined parser and
157 bool\ ucl_parser_add_string\ (struct\ ucl_parser\ *parser,\
170 bool\ ucl_parser_add_file\ (struct\ ucl_parser\ *parser,\
176 \f[C]parser\f[].
187 ucl_object_t*\ ucl_parser_get_object\ (struct\ ucl_parser\ *parser);
192 the top object for the parser.
201 const\ char\ *ucl_parser_get_error(struct\ ucl_parser\ *parser);
205 Returns the constant error string for the parser object.
212 void\ ucl_parser_free\ (struct\ ucl_parser\ *parser);
216 Frees memory occupied by the parser object.
224 bool\ ucl_pubkey_add\ (struct\ ucl_parser\ *parser,\
230 \f[C]len\f[] to the \f[C]parser\f[] object.
242 bool\ ucl_parser_set_filevars\ (struct\ ucl_parser\ *parser,\
247 Add the standard file variables to the \f[C]parser\f[] based on the
270 .SS Parser usage example
273 from stdin using \f[C]libucl\f[] parser functions (the length of input
279 struct\ ucl_parser\ *parser\ =\ NULL;
285 parser\ =\ ucl_parser_new\ (0);
289 ucl_parser_add_chunk\ (parser,\ inbuf,\ r);
292 if\ (ucl_parser_get_error\ (parser))\ {
293 \ \ \ \ printf\ ("Error\ occurred:\ %s\\n",\ ucl_parser_get_error\ (parser));
297 \ \ \ \ obj\ =\ ucl_parser_get_object\ (parser);
300 if\ (parser\ !=\ NULL)\ {
301 \ \ \ \ ucl_parser_free\ (parser);