/* Returns the newly created instance of #CRParser, or NULL if an error occured.  */
CRParser* cr_parser_new(CRTknzr *a_tknzr)
/* Returns the newly created instance of #CRParser, or NULL if an error occured.  */
CRParser* cr_parser_new(CRTknzr *a_tknzr)
{
        CRParser *result = NULL;
        enum CRStatus status = CR_OK;
        result = g_malloc0 (sizeof (CRParser));
        PRIVATE (result) = g_malloc0 (sizeof (CRParserPriv));
        if (a_tknzr) {
                status = cr_parser_set_tknzr (result, a_tknzr);
        }
        g_return_val_if_fail (status == CR_OK, NULL);
        return result;
}