15 #define YYCURSOR cursor
16 #define YYMARKER marker
18 #define YYFILL(n) (void)0
50 const char *cursor, *limit, *marker = 0;
58 unsigned int yyaccept;
95 if((yych = *
YYCURSOR) <= 0x00)
goto yy6;
98 #line 123 "implicit.re"
104 case 'o':
goto yy172;
105 case 'u':
goto yy200;
111 case 'O':
case 'o':
goto yy172;
112 case 'U':
goto yy195;
113 case 'u':
goto yy196;
119 #line 85 "implicit.re"
125 case 'e':
goto yy194;
131 case 'E':
goto yy192;
132 case 'e':
goto yy193;
138 case 'r':
goto yy190;
144 case 'R':
goto yy186;
145 case 'r':
goto yy187;
151 case 'f':
goto yy185;
152 case 'n':
goto yy182;
158 case 'F':
goto yy180;
159 case 'N':
case 'n':
goto yy182;
160 case 'f':
goto yy181;
166 case 'a':
goto yy177;
172 case 'A':
goto yy168;
173 case 'a':
goto yy169;
179 case '.':
goto yy167;
180 case '0':
goto yy158;
195 case '.':
goto yy157;
196 case '0':
goto yy158;
211 case 0x00:
goto yy52;
212 case ',':
goto yy142;
221 case '7':
goto yy140;
223 case '9':
goto yy141;
225 case 'x':
goto yy144;
231 case 0x00:
goto yy52;
257 if(yych <= 0x00)
goto yy28;
268 if(yych <= 0x00)
goto yy26;
277 #line 121 "implicit.re"
283 #line 119 "implicit.re"
284 {
return "default"; }
319 if(yych >= 0x01)
goto yy25;
324 #line 105 "implicit.re"
325 {
return "float#inf"; }
343 if(yych >= 0x01)
goto yy25;
348 #line 109 "implicit.re"
349 {
return "float#nan"; }
375 case 0x00:
goto yy52;
411 case 0x00:
goto yy56;
424 case 'E':
case 'e':
goto yy60;
430 #line 97 "implicit.re"
438 case 0x00:
goto yy56;
454 #line 99 "implicit.re"
455 {
return "float#fix"; }
472 case 'E':
case 'e':
goto yy60;
477 case '+':
case '-':
goto yy61;
481 if(yych <= 0x00)
goto yy25;
488 case 0x00:
goto yy64;
504 #line 101 "implicit.re"
505 {
return "float#exp"; }
511 case 0x00:
goto yy70;
530 case 0x00:
goto yy70;
540 case 0x00:
goto yy72;
556 #line 95 "implicit.re"
557 {
return "int#base60"; }
562 #line 103 "implicit.re"
563 {
return "float#base60"; }
647 case 0x00:
goto yy82;
665 #line 111 "implicit.re"
666 {
return "timestamp#ymd"; }
679 case '9':
goto yy126;
693 case '9':
goto yy108;
701 case 0x09:
case ' ':
goto yy86;
796 case 0x09:
case ' ':
goto yy98;
805 case 0x09:
case ' ':
goto yy98;
823 case 0x09:
case ' ':
goto yy98;
824 case '+':
case '-':
goto yy101;
825 case 'Z':
goto yy100;
829 if(yych <= 0x00)
goto yy105;
842 case '9':
goto yy102;
856 case '9':
goto yy103;
861 case 0x00:
goto yy105;
862 case ':':
goto yy104;
876 case '9':
goto yy107;
882 #line 115 "implicit.re"
883 {
return "timestamp#spaced"; }
896 case '9':
goto yy100;
910 case '9':
goto yy109;
915 case ':':
goto yy110;
929 case '9':
goto yy111;
943 case '9':
goto yy112;
948 case ':':
goto yy113;
962 case '9':
goto yy114;
976 case '9':
goto yy115;
981 case '.':
goto yy116;
999 case '+':
case '-':
goto yy119;
1009 case '9':
goto yy116;
1010 case 'Z':
goto yy118;
1014 if(yych <= 0x00)
goto yy123;
1027 case '9':
goto yy120;
1041 case '9':
goto yy121;
1046 case 0x00:
goto yy123;
1047 case ':':
goto yy122;
1061 case '9':
goto yy125;
1067 #line 113 "implicit.re"
1068 {
return "timestamp#iso8601"; }
1069 #line 1069 "<stdout>"
1081 case '9':
goto yy118;
1095 case '9':
goto yy127;
1100 case ':':
goto yy128;
1114 case '9':
goto yy129;
1128 case '9':
goto yy130;
1133 case ':':
goto yy131;
1147 case '9':
goto yy132;
1161 case '9':
goto yy133;
1166 case '.':
goto yy134;
1176 case '9':
goto yy25;
1177 case 'Z':
goto yy136;
1178 default:
goto yy135;
1184 yy135:
switch(yych){
1185 case '+':
case '-':
goto yy119;
1186 case '0':
goto yy134;
1195 case '9':
goto yy138;
1196 case 'Z':
goto yy118;
1200 if(yych >= 0x01)
goto yy25;
1208 yy139:
switch(yych){
1209 case '+':
case '-':
goto yy119;
1210 case '0':
goto yy134;
1219 case '9':
goto yy138;
1220 case 'Z':
goto yy136;
1232 case '7':
goto yy155;
1234 case '9':
goto yy153;
1235 default:
goto yy143;
1248 case '9':
goto yy153;
1249 default:
goto yy152;
1255 yy143:
switch(yych){
1256 case 0x00:
goto yy149;
1264 case '7':
goto yy142;
1265 case '.':
goto yy50;
1267 case '9':
goto yy151;
1268 case ':':
goto yy49;
1272 if(yych <= 0x00)
goto yy25;
1278 yy146:
switch(yych){
1279 case 0x00:
goto yy147;
1299 case 'f':
goto yy145;
1305 #line 91 "implicit.re"
1306 {
return "int#hex"; }
1307 #line 1307 "<stdout>"
1311 #line 93 "implicit.re"
1312 {
return "int#oct"; }
1313 #line 1313 "<stdout>"
1318 yy152:
switch(yych){
1328 case '9':
goto yy151;
1329 case '.':
goto yy50;
1330 case ':':
goto yy49;
1344 case '9':
goto yy154;
1345 default:
goto yy152;
1349 case '-':
goto yy76;
1350 default:
goto yy152;
1361 case '7':
goto yy156;
1363 case '9':
goto yy154;
1364 default:
goto yy143;
1368 case '-':
goto yy76;
1369 default:
goto yy143;
1373 case 'I':
goto yy160;
1374 case 'i':
goto yy159;
1379 case 0x00:
goto yy52;
1380 case 'x':
goto yy144;
1381 default:
goto yy143;
1385 case 'n':
goto yy166;
1390 case 'N':
goto yy161;
1391 case 'n':
goto yy162;
1396 case 'F':
goto yy163;
1401 case 'f':
goto yy163;
1405 if(yych >= 0x01)
goto yy25;
1410 #line 107 "implicit.re"
1411 {
return "float#neginf"; }
1412 #line 1412 "<stdout>"
1415 case 'f':
goto yy163;
1420 case 'I':
goto yy33;
1421 case 'i':
goto yy32;
1426 case 'L':
goto yy175;
1431 case 'l':
goto yy170;
1436 case 's':
goto yy171;
1441 case 'e':
goto yy172;
1445 if(yych >= 0x01)
goto yy25;
1450 #line 89 "implicit.re"
1451 {
return "bool#no"; }
1452 #line 1452 "<stdout>"
1455 case 'S':
goto yy176;
1460 case 'E':
goto yy172;
1465 case 'l':
goto yy178;
1470 case 's':
goto yy179;
1475 case 'e':
goto yy172;
1480 case 'F':
goto yy172;
1485 case 'f':
goto yy172;
1489 if(yych >= 0x01)
goto yy25;
1494 #line 87 "implicit.re"
1495 {
return "bool#yes"; }
1496 #line 1496 "<stdout>"
1499 case 'f':
goto yy172;
1504 case 'U':
goto yy189;
1509 case 'u':
goto yy188;
1514 case 'e':
goto yy182;
1519 case 'E':
goto yy182;
1524 case 'u':
goto yy191;
1529 case 'e':
goto yy182;
1534 case 'S':
goto yy182;
1539 case 's':
goto yy182;
1544 case 's':
goto yy182;
1549 case 'L':
goto yy199;
1554 case 'l':
goto yy197;
1559 case 'l':
goto yy198;
1563 if(yych <= 0x00)
goto yy6;
1567 case 'L':
goto yy198;
1572 case 'l':
goto yy201;
1577 case 'l':
goto yy198;
1581 #line 125 "implicit.re"
1590 if ( tag1 == tag2 )
return 1;
1591 if ( tag1 ==
NULL || tag2 ==
NULL )
return 0;
1597 othorpe =
strstr( tmp1,
"#" );
1598 if ( othorpe !=
NULL ) {
1601 othorpe =
strstr( tmp2,
"#" );
1602 if ( othorpe !=
NULL ) {
1605 i = strcmp( tmp1, tmp2 );
1614 const char *cursor, *limit, *marker = 0;
1617 limit = type_id +
strlen( type_id );
1620 #line 1620 "<stdout>"
1623 unsigned int yyaccept = 0;
1630 case 0x00:
goto yy204;
1631 case '!':
goto yy208;
1666 case 'Z':
case '_':
case 'a':
1687 case 'z':
goto yy210;
1688 case 't':
goto yy205;
1689 case 'x':
goto yy207;
1690 default:
goto yy211;
1696 yy205: yyaccept = 0;
1699 case ',':
goto yy216;
1700 case '-':
goto yy212;
1701 case '.':
goto yy217;
1702 case '/':
goto yy218;
1737 case 'Z':
case '_':
case 'b':
1761 case 'z':
goto yy214;
1762 case 'a':
goto yy246;
1763 default:
goto yy206;
1766 #line 202 "implicit.re"
1768 #line 1768 "<stdout>"
1769 yy207: yyaccept = 0;
1808 case 'Z':
case '_':
case 'a':
1833 case 'z':
goto yy215;
1834 case '-':
goto yy236;
1835 default:
goto yy206;
1840 #line 176 "implicit.re"
1842 #line 1842 "<stdout>"
1843 yy210: yyaccept = 0;
1846 case ',':
goto yy216;
1847 case '-':
goto yy212;
1848 case '.':
goto yy217;
1849 case '/':
goto yy218;
1884 case 'Z':
case '_':
case 'a':
1909 case 'z':
goto yy214;
1910 default:
goto yy206;
1918 yy213:
switch(yych){
1919 case '-':
goto yy212;
1954 case 'Z':
case '_':
case 'a':
1979 case 'z':
goto yy214;
1980 default:
goto yy204;
1986 yy215:
switch(yych){
1987 case ',':
goto yy216;
1988 case '-':
goto yy212;
1989 case '.':
goto yy217;
1990 case '/':
goto yy218;
2025 case 'Z':
case '_':
case 'a':
2050 case 'z':
goto yy214;
2051 default:
goto yy204;
2064 case '9':
goto yy224;
2065 default:
goto yy204;
2105 case 'Z':
case '_':
case 'a':
2130 case 'z':
goto yy220;
2131 default:
goto yy204;
2136 #line 178 "implicit.re"
2141 strncat( domain, type_id, (
YYCURSOR - type_id ) - 1 );
2142 strcat( domain,
"." );
2149 #line 2149 "<stdout>"
2154 yy221:
switch(yych){
2155 case ',':
goto yy216;
2156 case '-':
goto yy222;
2157 case '.':
goto yy217;
2158 case '/':
goto yy218;
2193 case 'Z':
case '_':
case 'a':
2218 case 'z':
goto yy220;
2219 default:
goto yy204;
2225 yy223:
switch(yych){
2226 case '-':
goto yy222;
2261 case 'Z':
case '_':
case 'a':
2286 case 'z':
goto yy220;
2287 default:
goto yy204;
2300 case '9':
goto yy225;
2301 default:
goto yy204;
2314 case '9':
goto yy226;
2315 default:
goto yy204;
2328 case '9':
goto yy227;
2329 default:
goto yy204;
2333 case '-':
goto yy228;
2334 case '/':
goto yy229;
2335 default:
goto yy204;
2348 case '9':
goto yy231;
2349 default:
goto yy204;
2354 #line 191 "implicit.re"
2359 strncat( domain, type_id, (
YYCURSOR - type_id ) - 1 );
2365 #line 2365 "<stdout>"
2377 case '9':
goto yy232;
2378 default:
goto yy204;
2382 case '-':
goto yy233;
2383 case '/':
goto yy229;
2384 default:
goto yy204;
2397 case '9':
goto yy234;
2398 default:
goto yy204;
2411 case '9':
goto yy235;
2412 default:
goto yy204;
2416 case '/':
goto yy229;
2417 default:
goto yy204;
2421 case 'p':
goto yy237;
2422 default:
goto yy213;
2426 case ',':
goto yy216;
2427 case '.':
goto yy217;
2428 case '/':
goto yy218;
2429 case 'r':
goto yy238;
2430 default:
goto yy213;
2434 case ',':
goto yy216;
2435 case '.':
goto yy217;
2436 case '/':
goto yy218;
2437 case 'i':
goto yy239;
2438 default:
goto yy213;
2442 case ',':
goto yy216;
2443 case '.':
goto yy217;
2444 case '/':
goto yy218;
2445 case 'v':
goto yy240;
2446 default:
goto yy213;
2450 case ',':
goto yy216;
2451 case '.':
goto yy217;
2452 case '/':
goto yy218;
2453 case 'a':
goto yy241;
2454 default:
goto yy213;
2458 case ',':
goto yy216;
2459 case '.':
goto yy217;
2460 case '/':
goto yy218;
2461 case 't':
goto yy242;
2462 default:
goto yy213;
2466 case ',':
goto yy216;
2467 case '.':
goto yy217;
2468 case '/':
goto yy218;
2469 case 'e':
goto yy243;
2470 default:
goto yy213;
2474 case ',':
goto yy216;
2475 case '.':
goto yy217;
2476 case '/':
goto yy218;
2477 case ':':
goto yy244;
2478 default:
goto yy213;
2483 #line 174 "implicit.re"
2485 #line 2485 "<stdout>"
2488 case ',':
goto yy216;
2489 case '.':
goto yy217;
2490 case '/':
goto yy218;
2491 case 'g':
goto yy247;
2492 default:
goto yy213;
2496 case ',':
goto yy216;
2497 case '.':
goto yy217;
2498 case '/':
goto yy218;
2499 case ':':
goto yy248;
2500 default:
goto yy213;
2506 case '.':
goto yy204;
2507 default:
goto yy250;
2513 yy250:
switch(yych){
2514 case ',':
goto yy253;
2515 case '-':
goto yy251;
2516 case '.':
goto yy254;
2551 case 'Z':
case '_':
case 'a':
2576 case 'z':
goto yy249;
2577 default:
goto yy204;
2583 yy252:
switch(yych){
2584 case '-':
goto yy251;
2619 case 'Z':
case '_':
case 'a':
2644 case 'z':
goto yy249;
2645 default:
goto yy204;
2658 case '9':
goto yy259;
2659 default:
goto yy204;
2699 case 'Z':
case '_':
case 'a':
2724 case 'z':
goto yy255;
2725 default:
goto yy204;
2731 yy256:
switch(yych){
2732 case ',':
goto yy253;
2733 case '-':
goto yy257;
2734 case '.':
goto yy254;
2769 case 'Z':
case '_':
case 'a':
2794 case 'z':
goto yy255;
2795 default:
goto yy204;
2801 yy258:
switch(yych){
2802 case '-':
goto yy257;
2837 case 'Z':
case '_':
case 'a':
2862 case 'z':
goto yy255;
2863 default:
goto yy204;
2876 case '9':
goto yy260;
2877 default:
goto yy204;
2890 case '9':
goto yy261;
2891 default:
goto yy204;
2904 case '9':
goto yy262;
2905 default:
goto yy204;
2909 case '-':
goto yy263;
2910 case ':':
goto yy264;
2911 default:
goto yy204;
2924 case '9':
goto yy266;
2925 default:
goto yy204;
2930 #line 172 "implicit.re"
2932 #line 2932 "<stdout>"
2944 case '9':
goto yy267;
2945 default:
goto yy204;
2949 case '-':
goto yy268;
2950 case ':':
goto yy264;
2951 default:
goto yy204;
2964 case '9':
goto yy269;
2965 default:
goto yy204;
2978 case '9':
goto yy270;
2979 default:
goto yy204;
2983 case ':':
goto yy264;
2984 default:
goto yy204;
2987 #line 204 "implicit.re"
size_t strlen(const char *)
#define S_ALLOC_N(type, n)
char * syck_type_id_to_uri(const char *type_id)
char * syck_xprivate(const char *type_id, int type_len)
char * syck_strndup(const char *buf, long len)
const char * syck_match_implicit(const char *str, size_t len)
RUBY_EXTERN char * strstr(const char *, const char *)
int syck_tagcmp(const char *tag1, const char *tag2)
union _syck_node::@16 data
register unsigned int len
struct _syck_node::@16::SyckStr * str
void try_tag_implicit(SyckNode *n, int taguri)
char * syck_taguri(const char *domain, const char *type_id, int type_len)