Lines Matching refs:token
624 CRToken *token = NULL;
629 if (token) {
630 cr_token_destroy (token);
631 token = NULL;
635 &token);
639 while ((token != NULL)
640 && (token->type == COMMENT_TK || token->type == S_TK));
642 cr_tknzr_unget_token (PRIVATE (a_this)->tknzr, token);
648 if (token) {
649 cr_token_destroy (token);
650 token = NULL;
679 CRToken *token = NULL;
689 if (token) {
690 cr_token_destroy (token);
691 token = NULL;
695 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
703 switch (token->type) {
711 token);
713 token = NULL;
726 if (token) {
727 cr_token_destroy (token);
728 token = NULL;
740 if (token) {
741 cr_token_destroy (token);
742 token = NULL;
761 CRToken *token = NULL;
770 &token);
772 && token
774 (token->type == ATKEYWORD_TK
775 || token->type == IMPORT_SYM_TK
776 || token->type == PAGE_SYM_TK
777 || token->type == MEDIA_SYM_TK
778 || token->type == FONT_FACE_SYM_TK
779 || token->type == CHARSET_SYM_TK));
781 cr_token_destroy (token);
782 token = NULL;
791 &token);
792 ENSURE_PARSING_COND (status == CR_OK && token);
794 if (token->type == CBO_TK) {
796 token);
797 token = NULL;
802 } else if (token->type == SEMICOLON_TK) {
810 if (token) {
811 cr_token_destroy (token);
812 token = NULL;
817 if (token) {
818 cr_token_destroy (token);
819 token = NULL;
836 CRToken *token = NULL;
849 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
850 ENSURE_PARSING_COND (status == CR_OK && token
851 && token->type == CBO_TK);
852 cr_token_destroy (token);
853 token = NULL;
859 if (token) {
860 cr_token_destroy (token);
861 token = NULL;
864 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
865 ENSURE_PARSING_COND (status == CR_OK && token);
866 if (token->type == CBC_TK) {
871 && token && token->type == SEMICOLON_TK);
873 cr_token_destroy (token);
874 token = NULL;
879 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
880 ENSURE_PARSING_COND (status == CR_OK && token);
881 if (token->type == CBC_TK) {
882 cr_token_destroy (token);
883 token = NULL;
888 token);
889 token = NULL;
894 if (token) {
895 cr_token_destroy (token);
896 token = NULL;
904 if (token) {
905 cr_token_destroy (token);
906 token = NULL;
925 CRToken *token = NULL;
944 if (token) {
945 cr_token_destroy (token);
946 token = NULL;
964 CRToken *token = NULL;
972 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
973 ENSURE_PARSING_COND (status == CR_OK && token
974 && token->type == CBO_TK);
978 if (token) {
979 cr_token_destroy (token);
980 token = NULL;
985 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
986 ENSURE_PARSING_COND (status == CR_OK && token);
988 if (token->type == CBC_TK) {
991 } else if (token->type == SEMICOLON_TK) {
993 } else if (token->type == ATKEYWORD_TK) {
996 } else if (token->type == CBO_TK) {
997 cr_tknzr_unget_token (PRIVATE (a_this)->tknzr, token);
998 token = NULL;
1003 cr_tknzr_unget_token (PRIVATE (a_this)->tknzr, token);
1004 token = NULL;
1011 if (token) {
1012 cr_token_destroy (token);
1013 token = NULL;
1020 if (token) {
1021 cr_token_destroy (token);
1022 token = NULL;
1033 CRToken *token = NULL;
1049 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
1051 && token
1052 && token->type == DELIM_TK
1053 && token->u.unichar == ':');
1054 cr_token_destroy (token);
1055 token = NULL;
1069 if (token) {
1070 cr_token_destroy (token);
1071 token = NULL;
1089 CRToken *token = NULL;
1099 if (token) {
1100 cr_token_destroy (token);
1101 token = NULL;
1104 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
1105 ENSURE_PARSING_COND (status == CR_OK && token);
1107 switch (token->type) {
1110 token);
1111 token = NULL;
1124 token);
1125 token = NULL;
1139 if (token) {
1140 cr_token_destroy (token);
1141 token = NULL;
1147 if (token) {
1148 cr_token_destroy (token);
1149 token = NULL;
1330 CRToken *token = NULL;
1338 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
1339 ENSURE_PARSING_COND (status == CR_OK && token
1340 && token->type == BO_TK);
1342 (&location, &token->location) ;
1343 cr_token_destroy (token);
1344 token = NULL;
1356 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
1358 && token && token->type == IDENT_TK);
1360 result->name = token->u.str;
1361 token->u.str = NULL;
1362 cr_token_destroy (token);
1363 token = NULL;
1367 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
1368 ENSURE_PARSING_COND (status == CR_OK && token);
1370 if (token->type == INCLUDES_TK) {
1373 } else if (token->type == DASHMATCH_TK) {
1376 } else if (token->type == DELIM_TK && token->u.unichar == '=') {
1379 } else if (token->type == BC_TK) {
1386 if (token) {
1387 cr_token_destroy (token);
1388 token = NULL;
1393 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
1394 ENSURE_PARSING_COND (status == CR_OK && token);
1396 if (token->type == IDENT_TK) {
1397 result->value = token->u.str;
1398 token->u.str = NULL;
1399 } else if (token->type == STRING_TK) {
1400 result->value = token->u.str;
1401 token->u.str = NULL;
1407 if (token) {
1408 cr_token_destroy (token);
1409 token = NULL;
1414 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
1416 ENSURE_PARSING_COND (status == CR_OK && token
1417 && token->type == BC_TK);
1419 if (token) {
1420 cr_token_destroy (token);
1421 token = NULL;
1441 if (token) {
1442 cr_token_destroy (token);
1443 token = NULL;
1513 CRToken *token = NULL;
1524 &token);
1525 if (status != CR_OK || !token)
1528 cr_parsing_location_copy (&location, &token->location) ;
1529 if (token->type == DELIM_TK && token->u.unichar == '+') {
1531 cr_token_destroy (token) ;
1532 token = NULL ;
1535 &token);
1536 if (status != CR_OK || !token)
1538 } else if (token->type == DELIM_TK && token->u.unichar == '-') {
1540 cr_token_destroy (token) ;
1541 token = NULL ;
1544 &token);
1545 if (status != CR_OK || !token)
1549 if (token->type == EMS_TK
1550 || token->type == EXS_TK
1551 || token->type == LENGTH_TK
1552 || token->type == ANGLE_TK
1553 || token->type == TIME_TK
1554 || token->type == FREQ_TK
1555 || token->type == PERCENTAGE_TK
1556 || token->type == NUMBER_TK) {
1557 status = cr_term_set_number (result, token->u.num);
1559 token->u.num = NULL;
1561 } else if (token && token->type == FUNCTION_TK) {
1563 token);
1564 token = NULL;
1574 } else if (token && token->type == STRING_TK) {
1576 token->u.str);
1578 token->u.str = NULL;
1579 } else if (token && token->type == IDENT_TK) {
1580 status = cr_term_set_ident (result, token->u.str);
1582 token->u.str = NULL;
1583 } else if (token && token->type == URI_TK) {
1584 status = cr_term_set_uri (result, token->u.str);
1586 token->u.str = NULL;
1587 } else if (token && token->type == RGB_TK) {
1588 status = cr_term_set_rgb (result, token->u.rgb);
1590 token->u.rgb = NULL;
1591 } else if (token && token->type == UNICODERANGE_TK) {
1594 } else if (token && token->type == HASH_TK) {
1595 status = cr_term_set_hash (result, token->u.str);
1597 token->u.str = NULL;
1613 if (token) {
1614 cr_token_destroy (token);
1615 token = NULL;
1628 if (token) {
1629 cr_token_destroy (token);
1630 token = NULL;
1666 CRToken *token = NULL;
1676 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
1685 &token->location) ;
1687 if (token && token->type == DELIM_TK
1688 && token->u.unichar == '*') {
1693 } else if (token && token->type == IDENT_TK) {
1694 sel->name = token->u.str;
1697 token->u.str = NULL;
1702 token);
1703 token = NULL;
1706 if (token) {
1707 cr_token_destroy (token);
1708 token = NULL;
1714 if (token) {
1715 cr_token_destroy (token);
1716 token = NULL;
1721 &token);
1725 if (token && token->type == HASH_TK) {
1732 add_sel->content.id_name = token->u.str;
1733 token->u.str = NULL;
1737 &token->location) ;
1742 } else if (token && (token->type == DELIM_TK)
1743 && (token->u.unichar == '.')) {
1744 cr_token_destroy (token);
1745 token = NULL;
1748 (PRIVATE (a_this)->tknzr, &token);
1752 if (token && token->type == IDENT_TK) {
1758 add_sel->content.class_name = token->u.str;
1759 token->u.str = NULL;
1768 & token->location) ;
1773 } else if (token && token->type == BO_TK) {
1778 (PRIVATE (a_this)->tknzr, token);
1781 token = NULL;
1801 } else if (token && (token->type == DELIM_TK)
1802 && (token->u.unichar == ':')) {
1807 if (token) {
1808 cr_token_destroy (token);
1809 token = NULL;
1815 (PRIVATE (a_this)->tknzr, &token);
1816 ENSURE_PARSING_COND (status == CR_OK && token);
1820 &token->location) ;
1822 if (token->type == IDENT_TK) {
1824 pseudo->name = token->u.str;
1825 token->u.str = NULL;
1827 } else if (token->type == FUNCTION_TK) {
1828 pseudo->name = token->u.str;
1829 token->u.str = NULL;
1862 (PRIVATE (a_this)->tknzr, token);
1863 token = NULL;
1882 if (token) {
1883 cr_token_destroy (token);
1884 token = NULL;
1895 if (token) {
1896 cr_token_destroy (token);
1897 token = NULL;
2135 CRToken *token = NULL;
2144 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
2148 if (token && token->type == FUNCTION_TK) {
2149 *a_func_name = token->u.str;
2150 token->u.str = NULL;
2155 cr_token_destroy (token);
2156 token = NULL;
2164 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
2168 ENSURE_PARSING_COND (token && token->type == PC_TK);
2170 cr_token_destroy (token);
2171 token = NULL;
2193 if (token) {
2194 cr_token_destroy (token);
2310 CRToken *token = NULL;
2327 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
2333 if (token && token->type == CHARSET_SYM_TK) {
2336 token);
2338 token = NULL;
2360 } else if (token
2361 && (token->type == S_TK
2362 || token->type == COMMENT_TK)) {
2364 token);
2365 token = NULL;
2370 } else if (token) {
2372 token);
2373 token = NULL;
2379 if (token) {
2380 cr_token_destroy (token);
2381 token = NULL;
2385 (PRIVATE (a_this)->tknzr, &token);
2390 } while (token
2391 && (token->type == S_TK
2392 || token->type == CDO_TK || token->type == CDC_TK));
2394 if (token) {
2396 token);
2397 token = NULL;
2402 (PRIVATE (a_this)->tknzr, &token);
2407 if (token && token->type == IMPORT_SYM_TK) {
2413 (PRIVATE (a_this)->tknzr, token);
2414 token = NULL;
2482 } else if (token
2483 && (token->type == S_TK
2484 || token->type == CDO_TK
2485 || token->type == CDC_TK)) {
2487 (PRIVATE (a_this)->tknzr, token);
2488 token = NULL;
2491 if (token) {
2492 cr_token_destroy (token);
2493 token = NULL;
2497 (PRIVATE (a_this)->tknzr, &token);
2502 } while (token
2503 && (token->type == S_TK
2504 || token->type == CDO_TK
2505 || token->type == CDC_TK));
2507 if (token) {
2509 (PRIVATE (a_this)->tknzr, token);
2510 token = NULL;
2522 (PRIVATE (a_this)->tknzr, &token);
2527 if (token
2528 && (token->type == S_TK
2529 || token->type == CDO_TK || token->type == CDC_TK)) {
2531 (PRIVATE (a_this)->tknzr, token);
2532 token = NULL;
2535 if (token) {
2536 cr_token_destroy (token);
2537 token = NULL;
2543 (PRIVATE (a_this)->tknzr, &token);
2544 } while (token
2545 && (token->type == S_TK
2546 || token->type == COMMENT_TK
2547 || token->type == CDO_TK
2548 || token->type == CDC_TK));
2549 if (token) {
2551 (PRIVATE (a_this)->tknzr, token);
2552 token = NULL;
2554 } else if (token
2555 && (token->type == HASH_TK
2556 || (token->type == DELIM_TK
2557 && token->u.unichar == '.')
2558 || (token->type == DELIM_TK
2559 && token->u.unichar == ':')
2560 || (token->type == DELIM_TK
2561 && token->u.unichar == '*')
2562 || (token->type == BO_TK)
2563 || token->type == IDENT_TK)) {
2570 (PRIVATE (a_this)->tknzr, token);
2572 token = NULL;
2596 } else if (token && token->type == MEDIA_SYM_TK) {
2598 (PRIVATE (a_this)->tknzr, token);
2600 token = NULL;
2623 } else if (token && token->type == PAGE_SYM_TK) {
2625 (PRIVATE (a_this)->tknzr, token);
2627 token = NULL;
2649 } else if (token && token->type == FONT_FACE_SYM_TK) {
2651 (PRIVATE (a_this)->tknzr, token);
2653 token = NULL;
2677 (PRIVATE (a_this)->tknzr, token);
2679 token = NULL;
2691 if (token) {
2692 cr_token_destroy (token);
2693 token = NULL;
2722 if (token) {
2723 cr_token_destroy (token);
2724 token = NULL;
3124 CRToken *token = NULL;
3132 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
3137 && token && token->type == IMPORTANT_SYM_TK);
3141 cr_token_destroy (token);
3142 token = NULL;
3146 if (token) {
3147 cr_token_destroy (token);
3148 token = NULL;
3267 CRToken *token = NULL;
3275 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
3277 ENSURE_PARSING_COND (status == CR_OK && token);
3279 switch (token->type) {
3286 cr_tknzr_unget_token (PRIVATE (a_this)->tknzr, token);
3287 token = NULL;
3293 cr_tknzr_unget_token (PRIVATE (a_this)->tknzr, token);
3294 token = NULL;
3303 if (token) {
3304 cr_token_destroy (token);
3305 token = NULL;
3710 CRToken *token = NULL;
3724 &token);
3726 && token
3727 && token->type == MEDIA_SYM_TK);
3728 cr_parsing_location_copy (&location, &token->location) ;
3729 cr_token_destroy (token);
3730 token = NULL;
3734 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
3736 && token && token->type == IDENT_TK);
3738 medium = token->u.str;
3739 token->u.str = NULL;
3740 cr_token_destroy (token);
3741 token = NULL;
3835 if (token) {
3836 cr_token_destroy (token);
3837 token = NULL;
3880 CRToken *token = NULL;
3893 &token) ;
3895 && token
3896 && token->type == PAGE_SYM_TK);
3898 cr_parsing_location_copy (&location, &token->location) ;
3899 cr_token_destroy (token);
3900 token = NULL;
3904 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
3905 ENSURE_PARSING_COND (status == CR_OK && token);
3907 if (token->type == IDENT_TK) {
3908 page_selector = token->u.str;
3909 token->u.str = NULL;
3910 cr_token_destroy (token);
3911 token = NULL;
3913 cr_tknzr_unget_token (PRIVATE (a_this)->tknzr, token);
3914 token = NULL;
3921 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
3922 ENSURE_PARSING_COND (status == CR_OK && token);
3924 if (token->type == DELIM_TK && token->u.unichar == ':') {
3925 cr_token_destroy (token);
3926 token = NULL;
3930 cr_tknzr_unget_token (PRIVATE (a_this)->tknzr, token);
3931 token = NULL;
3940 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
3942 ENSURE_PARSING_COND (status == CR_OK && token
3943 && token->type == CBO_TK);
3945 cr_token_destroy (token);
3946 token = NULL;
3994 if (token) {
3995 cr_token_destroy (token);
3996 token = NULL;
3999 (PRIVATE (a_this)->tknzr, &token);
4001 ENSURE_PARSING_COND (status == CR_OK && token);
4003 if (token->type != SEMICOLON_TK) {
4006 token);
4007 token = NULL ;
4011 cr_token_destroy (token);
4012 token = NULL;
4046 if (token) {
4047 cr_token_destroy (token) ;
4048 token = NULL ;
4052 (PRIVATE (a_this)->tknzr, &token);
4054 && token
4055 && token->type == CBC_TK) ;
4056 cr_token_destroy (token) ;
4057 token = NULL ;
4088 if (token) {
4089 cr_token_destroy (token);
4090 token = NULL;
4132 CRToken *token = NULL;
4141 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
4144 && token && token->type == CHARSET_SYM_TK);
4147 &token->location) ;
4149 cr_token_destroy (token);
4150 token = NULL;
4156 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
4158 && token && token->type == STRING_TK);
4159 charset_str = token->u.str;
4160 token->u.str = NULL;
4161 cr_token_destroy (token);
4162 token = NULL;
4166 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
4169 && token && token->type == SEMICOLON_TK);
4170 cr_token_destroy (token);
4171 token = NULL;
4183 if (token) {
4184 cr_token_destroy (token);
4185 token = NULL;
4224 CRToken *token = NULL;
4234 status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
4236 && token
4237 && token->type == FONT_FACE_SYM_TK);
4240 if (token) {
4242 &token->location) ;
4243 cr_token_destroy (token);
4244 token = NULL;
4247 &token);
4248 ENSURE_PARSING_COND (status == CR_OK && token
4249 && token->type == CBO_TK);
4250 if (token) {
4251 cr_token_destroy (token);
4252 token = NULL;
4339 if (token) {
4340 cr_token_destroy (token);
4341 token = NULL;
4348 if (token) {
4349 cr_token_destroy (token);
4350 token = NULL;