Home | History | Annotate | Download | only in cs

Lines Matching refs:parse

182 typedef NEOERR* (*CSFUNCTION)(CSPARSE *parse, CS_FUNCTION *csf, CSARG *args,
224 NEOS_ESCAPE current; /* Used to pass around parse and evaluation specific
279 struct _parse *parent; /* set on internally created parse instances to point
304 * Input: parse - a pointer to a pointer to a CSPARSE structure that
307 * Output: parse will contain a pointer to the allocated CSPARSE
315 NEOERR *cs_init (CSPARSE **parse, HDF *hdf);
318 * Function: cs_parse_file - parse a CS template file
319 * Description: cs_parse_file will parse the CS template located at
322 * appended to the current parse tree stored in the CSPARSE
325 * Input: parse - a CSPARSE structure created with cs_init
326 * path - the path to the file to parse
334 NEOERR *cs_parse_file (CSPARSE *parse, const char *path);
337 * Function: cs_parse_string - parse a CS template string
339 * modified, and internal references are kept by the parse
343 * The parse information will be appended to the current
344 * parse tree. During parse, the only HDF variables which
347 * Input: parse - a CSPARSE structure created with cs_init
348 * buf - the string to parse. Embedded NULLs are not currently
353 * NERR_NOMEM - unable to allocate memory for parse structures
356 NEOERR *cs_parse_string (CSPARSE *parse, char *buf, size_t blen);
359 * Function: cs_render - render a CS parse tree
360 * Description: cs_render will evaluate a CS parse tree, calling the
362 * cs_render multiple times on the same parse tree may or
367 * Input: parse - the CSPARSE structure containing the CS parse tree
379 NEOERR *cs_render (CSPARSE *parse, void *ctx, CSOUTFUNC cb);
382 * Function: cs_dump - dump the cs parse tree
383 * Description: cs_dump will dump the CS parse tree in the parse struct.
386 * display the parse tree.
387 * Input: parse - the CSPARSE structure created with cs_init
391 * Return: NERR_ASSERT if there is no parse tree
394 NEOERR *cs_dump (CSPARSE *parse, void *ctx, CSOUTFUNC cb);
397 * Function: cs_destroy - clean up and dealloc a parse tree
403 * with a NULL pointer, and it will leave parse NULL as
406 * Input: parse - a pointer to a parse structure.
407 * Output: parse - will be NULL
410 void cs_destroy (CSPARSE **parse);
423 * Input: parse - a pointer to an initialized CSPARSE structure
431 void cs_register_fileload(CSPARSE *parse, void *ctx, CSFILELOAD fileload);
449 * Input: parse - a pointer to a CSPARSE structure initialized with cs_init()
458 NEOERR *cs_register_strfunc(CSPARSE *parse, char *funcname, CSSTRFUNC str_func);
465 * Input: parse - a pointer to a CSPARSE structure initialized with cs_init()
474 NEOERR *cs_register_esc_strfunc(CSPARSE *parse, char *funcname,
479 NEOERR *cs_arg_parse(CSPARSE *parse, CSARG *args, const char *fmt, ...);
480 NEOERR *cs_arg_parsev(CSPARSE *parse, CSARG *args, const char *fmt, va_list ap);
481 NEOERR *cs_register_function(CSPARSE *parse, const char *funcname,