'date phrase' if format not recognized.
struct date_value def_date_val;
struct date def_date;
+char* curr_line_value;
+
int max_month[] = { 12, /* CAL_GREGORIAN */
12, /* CAL_JULIAN */
13, /* CAL_HEBREW */
{
init_date(&date_s);
init_date(&def_date);
+ curr_line_value = line_value;
init_gedcom_date_lex(line_value);
gedcom_date_parse();
close_gedcom_date_lex();
extern struct date_value dv_s;
extern struct date date_s;
extern struct date def_date;
+extern char* curr_line_value;
int gedcom_date_parse();
int gedcom_date_lex();
| date_interpr
| date_phrase { make_date_value(DV_PHRASE,
def_date, def_date, $1); }
+ | error { /* On error: put entire string in 'phrase' member
+ as fallback */
+ make_date_value(DV_PHRASE,
+ def_date, def_date, curr_line_value); }
;
date : ESC_DATE_GREG date_greg { copy_date(&$$, date_s);