-/* Generated by re2c 0.9.10.dev on Wed Oct 19 22:39:08 2005 */
-#line 1 "resource/parse_date.re"
+/* Generated by re2c 0.9.10 on Tue Nov 8 22:16:36 2005 */
+#line 1 "ext/date/lib/parse_date.re"
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
std:
s->tok = cursor;
s->len = 0;
-#line 802 "resource/parse_date.re"
+#line 802 "ext/date/lib/parse_date.re"
{
0, 0, 0, 0, 0, 0, 0, 0,
};
-#line 738 "<stdout>"
+#line 738 "ext/date/lib/parse_date.c"
{
YYCTYPE yych;
unsigned int yyaccept;
yy3:
YYDEBUG(3, *YYCURSOR);
-#line 1300 "resource/parse_date.re"
+#line 1300 "ext/date/lib/parse_date.re"
{
int tz_not_found;
DEBUG_OUTPUT("tzcorrection | tz");
TIMELIB_DEINIT;
return TIMELIB_TIMEZONE;
}
-#line 826 "<stdout>"
+#line 826 "ext/date/lib/parse_date.c"
yy4:
YYDEBUG(4, *YYCURSOR);
yych = *++YYCURSOR;
yy8:
YYDEBUG(8, *YYCURSOR);
-#line 1366 "resource/parse_date.re"
+#line 1366 "ext/date/lib/parse_date.re"
{
/* printf("unexpected character: #%d, %c ", *s->tok, *s->tok); */
s->errors++;
goto std;
}
-#line 931 "<stdout>"
+#line 931 "ext/date/lib/parse_date.c"
yy9:
YYDEBUG(9, *YYCURSOR);
yyaccept = 0;
yy44:
YYDEBUG(44, *YYCURSOR);
-#line 1355 "resource/parse_date.re"
+#line 1355 "ext/date/lib/parse_date.re"
{
goto std;
}
-#line 1767 "<stdout>"
+#line 1767 "ext/date/lib/parse_date.c"
yy45:
YYDEBUG(45, *YYCURSOR);
++YYCURSOR;
yy46:
YYDEBUG(46, *YYCURSOR);
-#line 1360 "resource/parse_date.re"
+#line 1360 "ext/date/lib/parse_date.re"
{
s->pos = cursor; s->line++;
goto std;
}
-#line 1776 "<stdout>"
+#line 1776 "ext/date/lib/parse_date.c"
yy47:
YYDEBUG(47, *YYCURSOR);
yych = *++YYCURSOR;
yy85:
YYDEBUG(85, *YYCURSOR);
-#line 1339 "resource/parse_date.re"
+#line 1339 "ext/date/lib/parse_date.re"
{
timelib_ull i;
DEBUG_OUTPUT("relative");
TIMELIB_DEINIT;
return TIMELIB_RELATIVE;
}
-#line 2166 "<stdout>"
+#line 2166 "ext/date/lib/parse_date.c"
yy86:
YYDEBUG(86, *YYCURSOR);
++YYCURSOR;
yy151:
YYDEBUG(151, *YYCURSOR);
-#line 1294 "resource/parse_date.re"
+#line 1294 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("dayabbr");
goto std;
}
-#line 2730 "<stdout>"
+#line 2730 "ext/date/lib/parse_date.c"
yy152:
YYDEBUG(152, *YYCURSOR);
yyaccept = 1;
yy158:
YYDEBUG(158, *YYCURSOR);
-#line 1277 "resource/parse_date.re"
+#line 1277 "ext/date/lib/parse_date.re"
{
const timelib_relunit* relunit;
DEBUG_OUTPUT("dayfull");
TIMELIB_DEINIT;
return TIMELIB_RELATIVE;
}
-#line 2771 "<stdout>"
+#line 2771 "ext/date/lib/parse_date.c"
yy159:
YYDEBUG(159, *YYCURSOR);
yyaccept = 1;
yy190:
YYDEBUG(190, *YYCURSOR);
-#line 1260 "resource/parse_date.re"
+#line 1260 "ext/date/lib/parse_date.re"
{
timelib_sll i;
int behavior;
TIMELIB_DEINIT;
return TIMELIB_RELATIVE;
}
-#line 3090 "<stdout>"
+#line 3090 "ext/date/lib/parse_date.c"
yy191:
YYDEBUG(191, *YYCURSOR);
++YYCURSOR;
yy509:
YYDEBUG(509, *YYCURSOR);
-#line 1082 "resource/parse_date.re"
+#line 1082 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("datetextual | datenoyear");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_DATE_TEXT;
}
-#line 8083 "<stdout>"
+#line 8083 "ext/date/lib/parse_date.c"
yy510:
YYDEBUG(510, *YYCURSOR);
yych = *++YYCURSOR;
yy527:
YYDEBUG(527, *YYCURSOR);
-#line 1311 "resource/parse_date.re"
+#line 1311 "ext/date/lib/parse_date.re"
{
int tz_not_found;
DEBUG_OUTPUT("dateshortwithtimeshort | dateshortwithtimelong | dateshortwithtimelongtz");
TIMELIB_DEINIT;
return TIMELIB_SHORTDATE_WITH_TIME;
}
-#line 8234 "<stdout>"
+#line 8234 "ext/date/lib/parse_date.c"
yy528:
YYDEBUG(528, *YYCURSOR);
yyaccept = 7;
yy562:
YYDEBUG(562, *YYCURSOR);
-#line 1056 "resource/parse_date.re"
+#line 1056 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("datenoday");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_DATE_NO_DAY;
}
-#line 8489 "<stdout>"
+#line 8489 "ext/date/lib/parse_date.c"
yy563:
YYDEBUG(563, *YYCURSOR);
yyaccept = 6;
yy588:
YYDEBUG(588, *YYCURSOR);
-#line 1191 "resource/parse_date.re"
+#line 1191 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("pgtextshort");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_PG_TEXT;
}
-#line 8748 "<stdout>"
+#line 8748 "ext/date/lib/parse_date.c"
yy589:
YYDEBUG(589, *YYCURSOR);
yych = *++YYCURSOR;
yy684:
YYDEBUG(684, *YYCURSOR);
-#line 1245 "resource/parse_date.re"
+#line 1245 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("ago");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_AGO;
}
-#line 10073 "<stdout>"
+#line 10073 "ext/date/lib/parse_date.c"
yy685:
YYDEBUG(685, *YYCURSOR);
yyaccept = 1;
yy788:
YYDEBUG(788, *YYCURSOR);
-#line 1095 "resource/parse_date.re"
+#line 1095 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("datenoyearrev");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_DATE_TEXT;
}
-#line 11806 "<stdout>"
+#line 11806 "ext/date/lib/parse_date.c"
yy789:
YYDEBUG(789, *YYCURSOR);
yyaccept = 10;
yy799:
YYDEBUG(799, *YYCURSOR);
-#line 886 "resource/parse_date.re"
+#line 886 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("timetiny12 | timeshort12 | timelong12");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_TIME12;
}
-#line 11910 "<stdout>"
+#line 11910 "ext/date/lib/parse_date.c"
yy800:
YYDEBUG(800, *YYCURSOR);
yych = *++YYCURSOR;
yy802:
YYDEBUG(802, *YYCURSOR);
-#line 903 "resource/parse_date.re"
+#line 903 "ext/date/lib/parse_date.re"
{
int tz_not_found;
DEBUG_OUTPUT("timeshort24 | timelong24 | iso8601long");
TIMELIB_DEINIT;
return TIMELIB_TIME24_WITH_ZONE;
}
-#line 11947 "<stdout>"
+#line 11947 "ext/date/lib/parse_date.c"
yy803:
YYDEBUG(803, *YYCURSOR);
yyaccept = 11;
yy828:
YYDEBUG(828, *YYCURSOR);
-#line 1030 "resource/parse_date.re"
+#line 1030 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("datefull");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_DATE_FULL;
}
-#line 12150 "<stdout>"
+#line 12150 "ext/date/lib/parse_date.c"
yy829:
YYDEBUG(829, *YYCURSOR);
yych = *++YYCURSOR;
yy897:
YYDEBUG(897, *YYCURSOR);
-#line 1043 "resource/parse_date.re"
+#line 1043 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("pointed date");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_DATE_FULL_POINTED;
}
-#line 12659 "<stdout>"
+#line 12659 "ext/date/lib/parse_date.c"
yy898:
YYDEBUG(898, *YYCURSOR);
yych = *++YYCURSOR;
yy943:
YYDEBUG(943, *YYCURSOR);
-#line 1017 "resource/parse_date.re"
+#line 1017 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("gnudateshort");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_ISO_DATE;
}
-#line 13147 "<stdout>"
+#line 13147 "ext/date/lib/parse_date.c"
yy944:
YYDEBUG(944, *YYCURSOR);
yych = *++YYCURSOR;
yy947:
YYDEBUG(947, *YYCURSOR);
-#line 990 "resource/parse_date.re"
+#line 990 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("americanshort | american");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_AMERICAN;
}
-#line 13175 "<stdout>"
+#line 13175 "ext/date/lib/parse_date.c"
yy948:
YYDEBUG(948, *YYCURSOR);
yyaccept = 12;
yy980:
YYDEBUG(980, *YYCURSOR);
-#line 1217 "resource/parse_date.re"
+#line 1217 "ext/date/lib/parse_date.re"
{
int tz_not_found;
DEBUG_OUTPUT("clf");
TIMELIB_DEINIT;
return TIMELIB_CLF;
}
-#line 13349 "<stdout>"
+#line 13349 "ext/date/lib/parse_date.c"
yy981:
YYDEBUG(981, *YYCURSOR);
yyaccept = 13;
yy1020:
YYDEBUG(1020, *YYCURSOR);
-#line 1204 "resource/parse_date.re"
+#line 1204 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("pgtextreverse");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_PG_TEXT;
}
-#line 13589 "<stdout>"
+#line 13589 "ext/date/lib/parse_date.c"
yy1021:
YYDEBUG(1021, *YYCURSOR);
yych = *++YYCURSOR;
yy1032:
YYDEBUG(1032, *YYCURSOR);
-#line 1236 "resource/parse_date.re"
+#line 1236 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("year4");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_CLF;
}
-#line 13705 "<stdout>"
+#line 13705 "ext/date/lib/parse_date.c"
yy1033:
YYDEBUG(1033, *YYCURSOR);
yych = *++YYCURSOR;
yy1041:
YYDEBUG(1041, *YYCURSOR);
-#line 1069 "resource/parse_date.re"
+#line 1069 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("datenodayrev");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_DATE_NO_DAY;
}
-#line 13832 "<stdout>"
+#line 13832 "ext/date/lib/parse_date.c"
yy1042:
YYDEBUG(1042, *YYCURSOR);
yych = *++YYCURSOR;
yy1061:
YYDEBUG(1061, *YYCURSOR);
-#line 1172 "resource/parse_date.re"
+#line 1172 "ext/date/lib/parse_date.re"
{
timelib_sll w, d;
DEBUG_OUTPUT("isoweek");
TIMELIB_DEINIT;
return TIMELIB_ISO_WEEK;
}
-#line 14019 "<stdout>"
+#line 14019 "ext/date/lib/parse_date.c"
yy1062:
YYDEBUG(1062, *YYCURSOR);
++YYCURSOR;
yy1063:
YYDEBUG(1063, *YYCURSOR);
-#line 1153 "resource/parse_date.re"
+#line 1153 "ext/date/lib/parse_date.re"
{
timelib_sll w, d;
DEBUG_OUTPUT("isoweekday");
TIMELIB_DEINIT;
return TIMELIB_ISO_WEEK;
}
-#line 14041 "<stdout>"
+#line 14041 "ext/date/lib/parse_date.c"
yy1064:
YYDEBUG(1064, *YYCURSOR);
yych = *++YYCURSOR;
yy1067:
YYDEBUG(1067, *YYCURSOR);
-#line 1140 "resource/parse_date.re"
+#line 1140 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("pgydotd");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_PG_YEARDAY;
}
-#line 14114 "<stdout>"
+#line 14114 "ext/date/lib/parse_date.c"
yy1068:
YYDEBUG(1068, *YYCURSOR);
yych = *++YYCURSOR;
yy1074:
YYDEBUG(1074, *YYCURSOR);
-#line 1106 "resource/parse_date.re"
+#line 1106 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("datenocolon");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_DATE_NOCOLON;
}
-#line 14222 "<stdout>"
+#line 14222 "ext/date/lib/parse_date.c"
yy1075:
YYDEBUG(1075, *YYCURSOR);
yych = *++YYCURSOR;
yy1085:
YYDEBUG(1085, *YYCURSOR);
-#line 1118 "resource/parse_date.re"
+#line 1118 "ext/date/lib/parse_date.re"
{
int tz_not_found;
DEBUG_OUTPUT("xmlrpc | xmlrpcnocolon | soap | wddx");
TIMELIB_DEINIT;
return TIMELIB_XMLRPC_SOAP;
}
-#line 14319 "<stdout>"
+#line 14319 "ext/date/lib/parse_date.c"
yy1086:
YYDEBUG(1086, *YYCURSOR);
yych = *++YYCURSOR;
yy1176:
YYDEBUG(1176, *YYCURSOR);
-#line 1005 "resource/parse_date.re"
+#line 1005 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("iso8601date | iso8601dateslash | dateslash");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_ISO_DATE;
}
-#line 14751 "<stdout>"
+#line 14751 "ext/date/lib/parse_date.c"
yy1177:
YYDEBUG(1177, *YYCURSOR);
yych = *++YYCURSOR;
yy1269:
YYDEBUG(1269, *YYCURSOR);
-#line 927 "resource/parse_date.re"
+#line 927 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("gnunocolon");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_GNU_NOCOLON;
}
-#line 15398 "<stdout>"
+#line 15398 "ext/date/lib/parse_date.c"
yy1270:
YYDEBUG(1270, *YYCURSOR);
yych = *++YYCURSOR;
yy1277:
YYDEBUG(1277, *YYCURSOR);
-#line 972 "resource/parse_date.re"
+#line 972 "ext/date/lib/parse_date.re"
{
int tz_not_found;
DEBUG_OUTPUT("iso8601nocolon");
TIMELIB_DEINIT;
return TIMELIB_ISO_NOCOLON;
}
-#line 15496 "<stdout>"
+#line 15496 "ext/date/lib/parse_date.c"
yy1278:
YYDEBUG(1278, *YYCURSOR);
yyaccept = 21;
yy1302:
YYDEBUG(1302, *YYCURSOR);
-#line 862 "resource/parse_date.re"
+#line 862 "ext/date/lib/parse_date.re"
{
timelib_ull i;
TIMELIB_DEINIT;
return TIMELIB_RELATIVE;
}
-#line 15760 "<stdout>"
+#line 15760 "ext/date/lib/parse_date.c"
yy1303:
YYDEBUG(1303, *YYCURSOR);
yych = *++YYCURSOR;
yy1311:
YYDEBUG(1311, *YYCURSOR);
-#line 850 "resource/parse_date.re"
+#line 850 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("tomorrow");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_RELATIVE;
}
-#line 15824 "<stdout>"
+#line 15824 "ext/date/lib/parse_date.c"
yy1312:
YYDEBUG(1312, *YYCURSOR);
yych = *++YYCURSOR;
yy1314:
YYDEBUG(1314, *YYCURSOR);
-#line 840 "resource/parse_date.re"
+#line 840 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("midnight | today");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_RELATIVE;
}
-#line 15840 "<stdout>"
+#line 15840 "ext/date/lib/parse_date.c"
yy1315:
YYDEBUG(1315, *YYCURSOR);
yych = *++YYCURSOR;
yy1323:
YYDEBUG(1323, *YYCURSOR);
-#line 819 "resource/parse_date.re"
+#line 819 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("now");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_RELATIVE;
}
-#line 15911 "<stdout>"
+#line 15911 "ext/date/lib/parse_date.c"
yy1324:
YYDEBUG(1324, *YYCURSOR);
yych = *++YYCURSOR;
yy1326:
YYDEBUG(1326, *YYCURSOR);
-#line 828 "resource/parse_date.re"
+#line 828 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("noon");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_RELATIVE;
}
-#line 15936 "<stdout>"
+#line 15936 "ext/date/lib/parse_date.c"
yy1327:
YYDEBUG(1327, *YYCURSOR);
yych = *++YYCURSOR;
yy1335:
YYDEBUG(1335, *YYCURSOR);
-#line 807 "resource/parse_date.re"
+#line 807 "ext/date/lib/parse_date.re"
{
DEBUG_OUTPUT("yesterday");
TIMELIB_INIT;
TIMELIB_DEINIT;
return TIMELIB_RELATIVE;
}
-#line 15987 "<stdout>"
+#line 15987 "ext/date/lib/parse_date.c"
}
}
-#line 1371 "resource/parse_date.re"
+#line 1371 "ext/date/lib/parse_date.re"
}