/* Returns CR_OK upon succesful completion, an error code otherwise.  */
enum CRStatus cr_parser_parse(CRParser *a_this)
/* Returns CR_OK upon succesful completion, an error code otherwise.  */
enum CRStatus cr_parser_parse(CRParser *a_this)
{
        enum CRStatus status = CR_ERROR;
        g_return_val_if_fail (a_this && PRIVATE (a_this)
                              && PRIVATE (a_this)->tknzr, CR_BAD_PARAM_ERROR);
        if (PRIVATE (a_this)->use_core_grammar == FALSE) {
                status = cr_parser_parse_stylesheet (a_this);
        } else {
                status = cr_parser_parse_stylesheet_core (a_this);
        }
        return status;
}