int yyparse (void) { int yystate; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* The stacks and their tools: 'yyss': related to states. 'yyvs': related to semantic values. Refer to the stacks through separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ yytype_int16 yyssa[YYINITDEPTH]; yytype_int16 *yyss; yytype_int16 *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs; YYSTYPE *yyvsp; YYSIZE_T yystacksize; int yyn; int yyresult; /* Lookahead token as an internal (translated) token number. */ int yytoken = 0; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; #if YYERROR_VERBOSE /* Buffer for error messages, and its allocated size. */ char yymsgbuf[128]; char *yymsg = yymsgbuf; YYSIZE_T yymsg_alloc = sizeof yymsgbuf; #endif #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) /* The number of symbols on the RHS of the reduced rule. Keep to zero when no symbol should be popped. */ int yylen = 0; yyssp = yyss = yyssa; yyvsp = yyvs = yyvsa; yystacksize = YYINITDEPTH; YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ goto yysetstate; /*------------------------------------------------------------. | yynewstate -- Push a new state, which is found in yystate. | `------------------------------------------------------------*/ yynewstate: /* In all cases, when you get here, the value and location stacks have just been pushed. So pushing a state here evens the stacks. */ yyssp++; yysetstate: *yyssp = yystate; if (yyss + yystacksize - 1 <= yyssp) { /* Get the current used size of the three stacks, in elements. */ YYSIZE_T yysize = yyssp - yyss + 1; #ifdef yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ YYSTYPE *yyvs1 = yyvs; yytype_int16 *yyss1 = yyss; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow (YY_("memory exhausted"), &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), &yystacksize); yyss = yyss1; yyvs = yyvs1; } #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE goto yyexhaustedlab; # else /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) goto yyexhaustedlab; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; { yytype_int16 *yyss1 = yyss; union yyalloc *yyptr = (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) goto yyexhaustedlab; YYSTACK_RELOCATE (yyss_alloc, yyss); YYSTACK_RELOCATE (yyvs_alloc, yyvs); # undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } # endif #endif /* no yyoverflow */ yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); if (yyss + yystacksize - 1 <= yyssp) YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); if (yystate == YYFINAL) YYACCEPT; goto yybackup; /*-----------. | yybackup. | `-----------*/ yybackup: /* Do appropriate processing given the current state. Read a lookahead token if we need one and don't already have one. */ /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; if (yypact_value_is_default (yyn)) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); yychar = yylex (); } if (yychar <= YYEOF) { yychar = yytoken = YYEOF; YYDPRINTF ((stderr, "Now at end of input.\n")); } else { yytoken = YYTRANSLATE (yychar); YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); } /* If the proper action on seeing token YYTOKEN is to reduce or to detect an error, take that action. */ yyn += yytoken; if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) goto yydefault; yyn = yytable[yyn]; if (yyn <= 0) { if (yytable_value_is_error (yyn)) goto yyerrlab; yyn = -yyn; goto yyreduce; } /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; /* Shift the lookahead token. */ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); /* Discard the shifted token. */ yychar = YYEMPTY; yystate = yyn; YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; YY_IGNORE_MAYBE_UNINITIALIZED_END goto yynewstate; /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; goto yyreduce; /*-----------------------------. | yyreduce -- Do a reduction. | `-----------------------------*/ yyreduce: /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; /* If YYLEN is nonzero, implement the default value of the action: '$$ = $1'. Otherwise, the following line sets YYVAL to garbage. This behavior is undocumented and Bison users should not rely upon it. Assigning to YYVAL unconditionally makes the parser a bit smaller, and it avoids a GCC warning that YYVAL may be used uninitialized. */ yyval = yyvsp[1-yylen]; YY_REDUCE_PRINT (yyn); switch (yyn) { #line 1296 "Project.tab.c" /* yacc.c:1646 */ default: break; } /* User semantic actions sometimes alter yychar, and that requires that yytoken be updated with the new translation. We take the approach of translating immediately before every use of yytoken. One alternative is translating here after every semantic action, but that translation would be missed if the semantic action invokes YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an incorrect destructor might then be invoked immediately. In the case of YYERROR or YYBACKUP, subsequent parser actions might lead to an incorrect destructor call or verbose syntax error message before the lookahead is translated. */ YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; /* Now 'shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ yyn = yyr1[yyn]; yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else yystate = yydefgoto[yyn - YYNTOKENS]; goto yynewstate; /*--------------------------------------. | yyerrlab -- here on detecting error. | `--------------------------------------*/ yyerrlab: /* Make sure we have latest lookahead translation. See comments at user semantic actions for why this is necessary. */ yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; #if ! YYERROR_VERBOSE yyerror (YY_("syntax error")); #else # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ yyssp, yytoken) { char const *yymsgp = YY_("syntax error"); int yysyntax_error_status; yysyntax_error_status = YYSYNTAX_ERROR; if (yysyntax_error_status == 0) yymsgp = yymsg; else if (yysyntax_error_status == 1) { if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); if (!yymsg) { yymsg = yymsgbuf; yymsg_alloc = sizeof yymsgbuf; yysyntax_error_status = 2; } else { yysyntax_error_status = YYSYNTAX_ERROR; yymsgp = yymsg; } } yyerror (yymsgp); if (yysyntax_error_status == 2) goto yyexhaustedlab; } # undef YYSYNTAX_ERROR #endif } if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an error, discard it. */ if (yychar <= YYEOF) { /* Return failure if at end of input. */ if (yychar == YYEOF) YYABORT; } else { yydestruct ("Error: discarding", yytoken, &yylval); yychar = YYEMPTY; } } /* Else will try to reuse lookahead token after shifting the error token. */ goto yyerrlab1; /*---------------------------------------------------. | yyerrorlab -- error raised explicitly by YYERROR. | `---------------------------------------------------*/ yyerrorlab: /* Pacify compilers like GCC when the user code never invokes YYERROR and the label yyerrorlab therefore never appears in user code. */ if (/*CONSTCOND*/ 0) goto yyerrorlab; /* Do not reclaim the symbols of the rule whose action triggered this YYERROR. */ YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); yystate = *yyssp; goto yyerrlab1; /*-------------------------------------------------------------. | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: yyerrstatus = 3; /* Each real token shifted decrements this. */ for (;;) { yyn = yypact[yystate]; if (!yypact_value_is_default (yyn)) { yyn += YYTERROR; if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) { yyn = yytable[yyn]; if (0 < yyn) break; } } /* Pop the current state because it cannot handle the error token. */ if (yyssp == yyss) YYABORT; yydestruct ("Error: popping", yystos[yystate], yyvsp); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; YY_IGNORE_MAYBE_UNINITIALIZED_END /* Shift the error token. */ YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); yystate = yyn; goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: yyresult = 0; goto yyreturn; /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: yyresult = 1; goto yyreturn; #if !defined yyoverflow || YYERROR_VERBOSE /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ yyexhaustedlab: yyerror (YY_("memory exhausted")); yyresult = 2; /* Fall through. */ #endif yyreturn: if (yychar != YYEMPTY) { /* Make sure we have latest lookahead translation. See comments at user semantic actions for why this is necessary. */ yytoken = YYTRANSLATE (yychar); yydestruct ("Cleanup: discarding lookahead", yytoken, &yylval); } /* Do not reclaim the symbols of the rule whose action triggered this YYABORT or YYACCEPT. */ YYPOPSTACK (yylen); YY_STACK_PRINT (yyss, yyssp); while (yyssp != yyss) { yydestruct ("Cleanup: popping", yystos[*yyssp], yyvsp); YYPOPSTACK (1); } #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif #if YYERROR_VERBOSE if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); #endif return yyresult; }
int yyparse( parser_control *pc ) { int yychar; YYSTYPE yylval; int yynerrs; int yystate; int yyn; int yyresult; int yyerrstatus; int yytoken = 0; yytype_int16 yyssa[20]; yytype_int16 *yyss = yyssa; yytype_int16 *yyssp; YYSTYPE yyvsa[20]; YYSTYPE *yyvs = yyvsa; YYSTYPE *yyvsp; unsigned int yystacksize = 20; YYSTYPE yyval; int yylen = 0; yystate = 0; yyerrstatus = 0; yynerrs = 0; yychar = -2; yyssp = yyss; yyvsp = yyvs; while ( yyssp[0] = yystate, yyss[ yystacksize - 1 ] <= yyssp ) { if ( yystate != 12 ) { yyn = yypact[ yystate ]; if ( yyn != -81 ) { if ( yychar == -2 ) { yychar = yylex( &yylval, pc ); } if ( yychar < 1 ) { yychar = yytoken = 0; } else { yytoken = yychar <= 276 ? yytranslate[ yychar ] : 2; } yyn += yytoken; if ( yyn >= 0 && yyn <= 96 && yytoken == yycheck[ yyn ] ) { yyn = yytable[ yyn ]; if ( yyn < 1 ) { if ( yyn != 0 && yyn != -1 ) yyn *= -1; yyval.intval = *(int*)(yyvsp + ( ( ( yylen * -32 ) + 32 ) - ( ( yylen * -4 ) + 4 ) )); yylen = yyr2[ yyn ]; *(int*)(ebp_2147483632 - 128) = *(int*)(yyvsp + ( ( ( yylen * -32 ) + 32 ) - ( ( yylen * -4 ) + 4 ) ) + 4); *(int*)(ebp_2147483632 - 124) = *(int*)(yyvsp + ( ( ( yylen * -32 ) + 32 ) - ( ( yylen * -4 ) + 4 ) ) + 8); *(int*)(ebp_2147483632 - 120) = *(int*)(yyvsp + ( ( ( yylen * -32 ) + 32 ) - ( ( yylen * -4 ) + 4 ) ) + 12); *(int*)(ebp_2147483632 - 116) = *(int*)(yyvsp + ( ( ( yylen * -32 ) + 32 ) - ( ( yylen * -4 ) + 4 ) ) + 16); *(int*)(ebp_2147483632 - 112) = *(int*)(yyvsp + ( ( ( yylen * -32 ) + 32 ) - ( ( yylen * -4 ) + 4 ) ) + 20); *(int*)(ebp_2147483632 - 108) = *(int*)(yyvsp + ( ( ( yylen * -32 ) + 32 ) - ( ( yylen * -4 ) + 4 ) ) + 24); switch ( yyn ) { case 4: pc->seconds.tv_sec = yyvsp->intval; pc->seconds.tv_nsec = yyvsp->relative_time.month/*error:'l'*/; pc->timespec_seen = 1; yyvsp->intval = yyval.intval; yyvsp = &yyvsp[ yylen * -1 ]; yyssp = &yyssp[ yylen * -1 ]; yylen = 0; yyvsp++; yyvsp->relative_time.month/*error:'l'*/ = *(int*)(ebp_2147483632 - 128); yyvsp->relative_time.day/*error:'l'*/ = *(int*)(ebp_2147483632 - 124); yyvsp->relative_time.hour/*error:'l'*/ = *(int*)(ebp_2147483632 - 120); yyvsp->relative_time.minutes/*error:'l'*/ = *(int*)(ebp_2147483632 - 116); yyvsp->relative_time.seconds/*error:'l'*/ = *(int*)(ebp_2147483632 - 112); yyvsp->relative_time.ns/*error:'l'*/ = *(int*)(ebp_2147483632 - 108); yyn = yyr1[ yyn ]; yystate = yypgoto[ yyn - 26 ] + yyssp[0]; if ( yystate >= 0 && yystate <= 96 && yyssp[0] == yycheck[ yystate ] ) yystate = yytable[ yystate ]; yyssp++; else yystate = yydefgoto[ yyn - 26 ]; break; case 7: pc->times_seen++; break; case 8: pc->local_zones_seen++; break; case 9: pc->zones_seen++; break; case 10: pc->dates_seen++; break; case 11: pc->days_seen++; break; case 12: pc->rels_seen = 1; break; case 15: pc->hour = *(int*)(yyvsp - 24); pc->minutes = 0; pc->seconds.tv_sec = 0; pc->seconds.tv_nsec = 0; pc->meridian = yyvsp->intval; break; case 16: pc->hour = *(int*)(yyvsp - 80); pc->minutes = *(int*)(yyvsp - 24); pc->seconds.tv_sec = 0; pc->seconds.tv_nsec = 0; pc->meridian = yyvsp->intval; break; case 17: pc->hour = *(int*)(yyvsp - 108); pc->minutes = *(int*)(yyvsp - 52); pc->seconds.tv_sec = 0; pc->seconds.tv_nsec = 0; pc->meridian = 2; pc->zones_seen++; pc->time_zone = time_zone_hhmm( yyvsp - 28, yyvsp->intval ); break; case 18: pc->hour = *(int*)(yyvsp - 136); pc->minutes = *(int*)(yyvsp - 80); pc->seconds.tv_sec = *(int*)(yyvsp - 28); pc->seconds.tv_nsec = *(int*)(yyvsp - 24); pc->meridian = yyvsp->intval; break; case 19: pc->hour = *(int*)(yyvsp - 164); pc->minutes = *(int*)(yyvsp - 108); pc->seconds.tv_sec = *(int*)(yyvsp - 56); pc->seconds.tv_nsec = *(int*)(yyvsp - 52); pc->meridian = 2; pc->zones_seen++; pc->time_zone = time_zone_hhmm( yyvsp - 28, yyvsp->intval ); break; case 20: pc->local_isdst = yyvsp->intval; pc->dsts_seen += yyvsp->intval > 0; break; case 21: pc->local_isdst = 1; pc->dsts_seen += *(int*)(yyvsp - 28) < 1 ? 1 : 2; break; case 22: pc->time_zone = yyvsp->intval; break; case 23: pc->time_zone = *(int*)(yyvsp - 28); pc->rel.ns += yyvsp->relative_time.ns/*error:'l'*/; pc->rel.seconds += yyvsp->relative_time.seconds/*error:'l'*/; pc->rel.minutes += yyvsp->relative_time.minutes/*error:'l'*/; pc->rel.hour += yyvsp->relative_time.hour/*error:'l'*/; pc->rel.day += (int)yyvsp->relative_time.day/*error:'l'*/; pc->rel.month += yyvsp->relative_time.month/*error:'l'*/; pc->rel.year += yyvsp->intval; pc->rels_seen = 1; break; case 24: pc->time_zone = *(int*)(yyvsp - 56) + time_zone_hhmm( yyvsp - 28, yyvsp->intval ); break; case 25: pc->time_zone = yyvsp->intval + 60; break; case 26: pc->time_zone = *(int*)(yyvsp - 28) + 60; break; case 27: pc->day_ordinal = 1; pc->day_number = yyvsp->intval; break; case 28: pc->day_ordinal = 1; pc->day_number = *(int*)(yyvsp - 28); break; case 29: pc->day_ordinal = *(int*)(yyvsp - 28); pc->day_number = yyvsp->intval; break; case 30: pc->day_ordinal = *(int*)(yyvsp - 24); pc->day_number = yyvsp->intval; break; case 31: pc->month = *(int*)(yyvsp - 52); pc->day = yyvsp->relative_time.month/*error:'l'*/; break; case 32: if ( *(int*)(yyvsp - 104) > 3 ) { pc->year.negative = *(int*)(yyvsp - 112); pc->year.value = *(int*)(yyvsp - 108); pc->year.digits = *(int*)(yyvsp - 104); pc->month = *(int*)(yyvsp - 52); pc->day = yyvsp->relative_time.month/*error:'l'*/; } else { pc->month = *(int*)(yyvsp - 108); pc->day = *(int*)(yyvsp - 52); pc->year.negative = yyvsp->intval; pc->year.value = yyvsp->relative_time.month/*error:'l'*/; pc->year.digits = yyvsp->relative_time.day/*error:'l'*/; } break; case 33: pc->year.negative = *(int*)(yyvsp - 56); pc->year.value = *(int*)(yyvsp - 52); pc->year.digits = *(int*)(yyvsp - 48); pc->month = *(int*)(yyvsp - 24) * -1; pc->day = yyvsp->relative_time.month/*error:'l'*/ * -1; break; case 34: pc->day = *(int*)(yyvsp - 52); pc->month = *(int*)(yyvsp - 28); pc->year.value = yyvsp->relative_time.month/*error:'l'*/ * -1; pc->year.digits = yyvsp->relative_time.day/*error:'l'*/; break; case 35: pc->month = *(int*)(yyvsp - 56); pc->day = *(int*)(yyvsp - 24) * -1; pc->year.value = yyvsp->relative_time.month/*error:'l'*/ * -1; pc->year.digits = yyvsp->relative_time.day/*error:'l'*/; break; case 36: pc->month = *(int*)(yyvsp - 28); pc->day = yyvsp->relative_time.month/*error:'l'*/; break; case 37: pc->month = *(int*)(yyvsp - 84); pc->day = *(int*)(yyvsp - 52); pc->year.negative = yyvsp->intval; pc->year.value = yyvsp->relative_time.month/*error:'l'*/; pc->year.digits = yyvsp->relative_time.day/*error:'l'*/; break; case 38: pc->day = *(int*)(yyvsp - 24); pc->month = yyvsp->intval; break; case 39: pc->day = *(int*)(yyvsp - 52); pc->month = *(int*)(yyvsp - 28); pc->year.negative = yyvsp->intval; pc->year.value = yyvsp->relative_time.month/*error:'l'*/; pc->year.digits = yyvsp->relative_time.day/*error:'l'*/; break; case 40: pc->rel.ns -= *(int*)(yyvsp - 4); pc->rel.seconds -= *(int*)(yyvsp - 8); pc->rel.minutes -= *(int*)(yyvsp - 12); pc->rel.hour -= *(int*)(yyvsp - 16); pc->rel.day -= *(int*)(yyvsp - 20); pc->rel.month -= *(int*)(yyvsp - 24); pc->rel.year -= *(int*)(yyvsp - 28); break; case 41: pc->rel.ns += yyvsp->relative_time.ns/*error:'l'*/; pc->rel.seconds += yyvsp->relative_time.seconds/*error:'l'*/; pc->rel.minutes += yyvsp->relative_time.minutes/*error:'l'*/; pc->rel.hour += yyvsp->relative_time.hour/*error:'l'*/; pc->rel.day += (int)yyvsp->relative_time.day/*error:'l'*/; pc->rel.month += yyvsp->relative_time.month/*error:'l'*/; pc->rel.year += yyvsp->intval; break; case 42: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; yyval.intval = *(int*)(yyvsp - 28); break; case 43: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; yyval.intval = *(int*)(yyvsp - 24); break; case 44: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; yyval.intval = 1; break; case 45: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 128) = *(int*)(yyvsp - 28); break; case 46: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 128) = *(int*)(yyvsp - 24); break; case 47: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 128) = 1; break; case 48: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 124) = yyvsp->intval * *(int*)(yyvsp - 28); break; case 49: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 124) = yyvsp->intval * *(int*)(yyvsp - 24); break; case 50: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 124) = yyvsp->intval; break; case 51: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 120) = *(int*)(yyvsp - 28); break; case 52: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 120) = *(int*)(yyvsp - 24); break; case 53: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 120) = 1; break; case 54: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 116) = *(int*)(yyvsp - 28); break; case 55: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 116) = *(int*)(yyvsp - 24); break; case 56: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 116) = 1; break; case 57: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 112) = *(int*)(yyvsp - 28); break; case 58: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 112) = *(int*)(yyvsp - 24); break; case 59: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 112) = *(int*)(yyvsp - 28); *(int*)(ebp_2147483632 - 108) = *(int*)(yyvsp - 24); break; case 60: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 112) = *(int*)(yyvsp - 28); *(int*)(ebp_2147483632 - 108) = *(int*)(yyvsp - 24); break; case 61: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 112) = 1; break; case 63: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; yyval.intval = *(int*)(yyvsp - 24); break; case 64: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 128) = *(int*)(yyvsp - 24); break; case 65: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 124) = yyvsp->intval * *(int*)(yyvsp - 24); break; case 66: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 120) = *(int*)(yyvsp - 24); break; case 67: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 116) = *(int*)(yyvsp - 24); break; case 68: yyval.intval = RELATIVE_TIME_0.year; *(int*)(ebp_2147483632 - 128) = RELATIVE_TIME_0.month; *(int*)(ebp_2147483632 - 124) = RELATIVE_TIME_0.day; *(int*)(ebp_2147483632 - 120) = RELATIVE_TIME_0.hour; *(int*)(ebp_2147483632 - 116) = RELATIVE_TIME_0.minutes; *(int*)(ebp_2147483632 - 112) = RELATIVE_TIME_0.seconds; *(int*)(ebp_2147483632 - 108) = RELATIVE_TIME_0.ns; *(int*)(ebp_2147483632 - 112) = *(int*)(yyvsp - 24); break; case 72: yyval.intval = yyvsp->relative_time.month/*error:'l'*/; *(int*)(ebp_2147483632 - 128) = 0; break; case 74: yyval.intval = yyvsp->relative_time.month/*error:'l'*/; *(int*)(ebp_2147483632 - 128) = 0; break; case 75: digits_to_date_time( pc, yyvsp[0].intval/*error:'l'*/ ); break; case 76: digits_to_date_time( pc, yyvsp - 28 ); pc->rel.ns += yyvsp->relative_time.ns/*error:'l'*/; pc->rel.seconds += yyvsp->relative_time.seconds/*error:'l'*/; pc->rel.minutes += yyvsp->relative_time.minutes/*error:'l'*/; pc->rel.hour += yyvsp->relative_time.hour/*error:'l'*/; pc->rel.day += (int)yyvsp->relative_time.day/*error:'l'*/; pc->rel.month += yyvsp->relative_time.month/*error:'l'*/; pc->rel.year += yyvsp->intval; pc->rels_seen = 1; break; case 77: yyval.intval = -1; break; case 78: yyval.intval = yyvsp->relative_time.month/*error:'l'*/; break; case 79: yyval.intval = 2; break; case 80: yyval.intval = yyvsp->intval; break; default: break; } else { if ( yyerrstatus == 0 ) { yynerrs++; yyerror( pc, "syntax error" ); } if ( yyerrstatus == 3 ) { if ( yychar < 1 ) { if ( yychar != 0 ) { } else yyresult = 1; if ( yychar != -2 ) yydestruct( "Cleanup: discarding lookahead", yytoken, &yylval, pc ); yyvsp = &yyvsp[ yylen * -1 ]; yyssp = &yyssp[ yylen * -1 ]; for ( ; yyssp != yyss; yyssp = &yyssp[ -1 ] ) { yydestruct( "Cleanup: popping", yystos[ yyssp[0] ], yyvsp, pc ); yyvsp -= 28; //yyssp = &yyssp[ -1 ]; } if ( yyssa[0] != yyss ) { free( yyss ); break; } } else { yydestruct( "Error: discarding", yytoken, &yylval, pc ); yychar = -2; } } yyerrstatus = 3; while ( yyn = yypact[ yystate ], yyn == -81 ) { if ( yyssp != yyss ) { yydestruct( "Error: popping", yystos[ yystate ], yyvsp, pc ); yyvsp -= 28; yyssp = &yyssp[ -1 ]; yystate = yyssp[0]; } } yyn++; if ( yyn >= 0 && yyn <= 96 && yycheck[ yyn ] == 1 ) { yyn = yytable[ yyn ]; if ( yyn >= 1 ) yyvsp->intval = yylval.intval; { yyvsp->intval = yylval.intval; yyvsp++; yyvsp->relative_time.month/*error:'l'*/ = *(int*)(ebp_2147483632 - 100); yyvsp->relative_time.day/*error:'l'*/ = *(int*)(ebp_2147483632 - 96); yyvsp->relative_time.hour/*error:'l'*/ = *(int*)(ebp_2147483632 - 92); yyvsp->relative_time.minutes/*error:'l'*/ = *(int*)(ebp_2147483632 - 88); yyvsp->relative_time.seconds/*error:'l'*/ = *(int*)(ebp_2147483632 - 84); yyvsp->relative_time.ns/*error:'l'*/ = *(int*)(ebp_2147483632 - 80); yystate = yyn; } } } } else { if ( yyerrstatus != 0 )