Lines Matching defs:parser

26 #include "cr-parser.h"
949 CRParser *parser = NULL;
953 parser = cr_parser_new_from_buf ((guchar*)a_buf, strlen ((const char *) a_buf),
955 g_return_val_if_fail (parser, FALSE);
957 status = cr_parser_set_use_core_grammar (parser, TRUE);
962 status = cr_parser_parse_statement_core (parser);
968 if (parser) {
969 cr_parser_destroy (parser);
1068 CRParser *parser = NULL;
1073 parser = cr_parser_new_from_buf ((guchar*)a_buf, strlen ((const char *) a_buf),
1076 g_return_val_if_fail (parser, NULL);
1087 cr_parser_set_sac_handler (parser, sac_handler);
1088 cr_parser_try_to_skip_spaces_and_comments (parser);
1089 status = cr_parser_parse_ruleset (parser);
1105 if (parser) {
1106 cr_parser_destroy (parser);
1107 parser = NULL;
1204 CRParser *parser = NULL;
1210 parser = cr_parser_new_from_buf ((guchar*)a_buf, strlen ((const char *) a_buf),
1212 if (!parser) {
1213 cr_utils_trace_info ("Instanciation of the parser failed");
1232 status = cr_parser_set_sac_handler (parser, sac_handler);
1236 status = cr_parser_try_to_skip_spaces_and_comments (parser);
1240 status = cr_parser_parse_media (parser);
1252 if (parser) {
1253 cr_parser_destroy (parser);
1254 parser = NULL;
1390 CRParser *parser = NULL;
1396 parser = cr_parser_new_from_buf ((guchar*)a_buf, strlen ((const char *) a_buf),
1398 if (!parser) {
1399 cr_utils_trace_info ("Instanciation of parser failed.");
1403 status = cr_parser_try_to_skip_spaces_and_comments (parser);
1407 status = cr_parser_parse_import (parser,
1424 if (parser) {
1425 cr_parser_destroy (parser);
1426 parser = NULL;
1516 CRParser *parser = NULL;
1523 parser = cr_parser_new_from_buf ((guchar*)a_buf, strlen ((const char *) a_buf),
1525 if (!parser) {
1526 cr_utils_trace_info ("Instanciation of the parser failed.");
1542 status = cr_parser_set_sac_handler (parser, sac_handler);
1546 /*Now, invoke the parser to parse the "@page production" */
1547 cr_parser_try_to_skip_spaces_and_comments (parser);
1550 status = cr_parser_parse_page (parser);
1560 if (parser) {
1561 cr_parser_destroy (parser);
1562 parser = NULL;
1633 CRParser *parser = NULL;
1639 parser = cr_parser_new_from_buf ((guchar*)a_buf, strlen ((const char *) a_buf),
1641 if (!parser) {
1642 cr_utils_trace_info ("Instanciation of the parser failed.");
1646 /*Now, invoke the parser to parse the "@charset production" */
1647 cr_parser_try_to_skip_spaces_and_comments (parser);
1650 status = cr_parser_parse_charset (parser, &charset, NULL);
1660 if (parser) {
1661 cr_parser_destroy (parser);
1662 parser = NULL;
1732 CRParser *parser = NULL;
1736 parser = cr_parser_new_from_buf ((guchar*)a_buf, strlen ((const char *) a_buf),
1738 if (!parser)
1754 status = cr_parser_set_sac_handler (parser, sac_handler);
1762 status = cr_parser_try_to_skip_spaces_and_comments (parser);
1766 status = cr_parser_parse_font_face (parser);
1777 if (parser) {
1778 cr_parser_destroy (parser);
1779 parser = NULL;