| CTPL Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#include <ctpl/ctpl.h> #define CTPL_PARSER_ERROR enum CtplParserError; gboolean ctpl_parser_parse (const CtplToken *tree,CtplEnviron *env,CtplOutputStream *output,GError **error);
Parses a CtplToken tree against a CtplEnviron.
To parse a token tree, use ctpl_parser_parse().
#define CTPL_PARSER_ERROR (ctpl_parser_error_quark ())
Error domain of CtplParser.
typedef enum _CtplParserError
{
CTPL_PARSER_ERROR_INCOMPATIBLE_SYMBOL,
CTPL_PARSER_ERROR_SYMBOL_NOT_FOUND,
CTPL_PARSER_ERROR_FAILED
} CtplParserError;
Error codes that parsing functions can throw, from the CTPL_PARSER_ERROR
domain.
gboolean ctpl_parser_parse (const CtplToken *tree,CtplEnviron *env,CtplOutputStream *output,GError **error);
Parses a token tree against an environment and outputs the result to output.
|
A CtplToken from which start parsing |
|
A CtplEnviron representing the parsing environment |
|
A CtplInputStream in which write parsing output |
|
Location where return a GError or NULL to ignore errors
|
Returns : |
TRUE on success, FALSE otherwise, in which case error shall be
set to the error that occurred.
|