rem: { yylval.ival =   1; return(WDAY); } YY_BREAK case 18:
add: { yylval.ival =   2; return(WDAY); } YY_BREAK case 19:
context: YY_DECL	{	register yy_state_type yy_current_state;	register char *yy_cp, *yy_bp;	register int yy_act;#line 9 "scanholiday.lex"#line 689 "scanholiday.c"	if ( yy_init )		{		yy_init = 0;#ifdef YY_USER_INIT		YY_USER_INIT;#endif		if ( ! yy_start )			yy_start = 1;	/* first start state */		if ( ! yyin )			yyin = stdin;		if ( ! yyout )			yyout = stdout;		if ( ! yy_current_buffer )			yy_current_buffer =				yy_create_buffer( yyin, YY_BUF_SIZE );		yy_load_buffer_state();		}	while ( 1 )		/* loops until end-of-file is reached */		{		yy_cp = yy_c_buf_p;		/* Support of yytext. */		*yy_cp = yy_hold_char;		/* yy_bp points to the position in yy_ch_buf of the start of		 * the current run.		 */		yy_bp = yy_cp;		yy_current_state = yy_start;		yy_current_state += YY_AT_BOL();yy_match:		do			{			register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];			if ( yy_accept[yy_current_state] )				{				yy_last_accepting_state = yy_current_state;				yy_last_accepting_cpos = yy_cp;				}			while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )				{				yy_current_state = (int) yy_def[yy_current_state];				if ( yy_current_state >= 269 )					yy_c = yy_meta[(unsigned int) yy_c];				}			yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];			++yy_cp;			}		while ( yy_current_state != 268 );		yy_cp = yy_last_accepting_cpos;		yy_current_state = yy_last_accepting_state;yy_find_action:		yy_act = yy_accept[yy_current_state];		YY_DO_BEFORE_ACTION;do_action:	/* This label is used only to access EOF actions. */		switch ( yy_act )	{ /* beginning of action switch */			case 0: /* must back up */			/* undo the effects of YY_DO_BEFORE_ACTION */			*yy_cp = yy_hold_char;			yy_cp = yy_last_accepting_cpos;			yy_current_state = yy_last_accepting_state;			goto yy_find_action;case 1:YY_RULE_SETUP#line 11 "scanholiday.lex";	YY_BREAKcase 2:YY_RULE_SETUP#line 12 "scanholiday.lex";	YY_BREAKcase 3:YY_RULE_SETUP#line 13 "scanholiday.lex";	YY_BREAKcase 4:YY_RULE_SETUP#line 14 "scanholiday.lex"{ return(*yytext); }	YY_BREAKcase 5:YY_RULE_SETUP#line 16 "scanholiday.lex"{ yylval.ival =   1; return(MONTH); }	YY_BREAKcase 6:YY_RULE_SETUP#line 17 "scanholiday.lex"{ yylval.ival =   2; return(MONTH); }	YY_BREAKcase 7:YY_RULE_SETUP#line 18 "scanholiday.lex"{ yylval.ival =   3; return(MONTH); }	YY_BREAKcase 8:YY_RULE_SETUP#line 19 "scanholiday.lex"{ yylval.ival =   4; return(MONTH); }	YY_BREAKcase 9:YY_RULE_SETUP#line 20 "scanholiday.lex"{ yylval.ival =   5; return(MONTH); }	YY_BREAKcase 10:YY_RULE_SETUP#line 21 "scanholiday.lex"{ yylval.ival =   6; return(MONTH); }	YY_BREAKcase 11:YY_RULE_SETUP#line 22 "scanholiday.lex"{ yylval.ival =   7; return(MONTH); }	YY_BREAKcase 12:YY_RULE_SETUP#line 23 "scanholiday.lex"{ yylval.ival =   8; return(MONTH); }	YY_BREAKcase 13:YY_RULE_SETUP#line 24 "scanholiday.lex"{ yylval.ival =   9; return(MONTH); }	YY_BREAKcase 14:YY_RULE_SETUP#line 25 "scanholiday.lex"{ yylval.ival =  10; return(MONTH); }	YY_BREAKcase 15:YY_RULE_SETUP#line 26 "scanholiday.lex"{ yylval.ival =  11; return(MONTH); }	YY_BREAKcase 16:YY_RULE_SETUP#line 27 "scanholiday.lex"{ yylval.ival =  12; return(MONTH); }	YY_BREAKcase 17:YY_RULE_SETUP#line 29 "scanholiday.lex"{ yylval.ival =   1; return(WDAY); }	YY_BREAKcase 18:YY_RULE_SETUP#line 30 "scanholiday.lex"{ yylval.ival =   2; return(WDAY); }	YY_BREAKcase 19:YY_RULE_SETUP#line 31 "scanholiday.lex"{ yylval.ival =   3; return(WDAY); }	YY_BREAKcase 20:YY_RULE_SETUP#line 32 "scanholiday.lex"{ yylval.ival =   4; return(WDAY); }	YY_BREAKcase 21:YY_RULE_SETUP#line 33 "scanholiday.lex"{ yylval.ival =   5; return(WDAY); }	YY_BREAKcase 22:YY_RULE_SETUP#line 34 "scanholiday.lex"{ yylval.ival =   6; return(WDAY); }	YY_BREAKcase 23:YY_RULE_SETUP#line 35 "scanholiday.lex"{ yylval.ival =   7; return(WDAY); }	YY_BREAKcase 24:YY_RULE_SETUP#line 37 "scanholiday.lex"{ yylval.ival =   1; return(NUMBER); }	YY_BREAKcase 25:YY_RULE_SETUP#line 38 "scanholiday.lex"{ yylval.ival =   2; return(NUMBER); }	YY_BREAKcase 26:YY_RULE_SETUP#line 39 "scanholiday.lex"{ yylval.ival =   3; return(NUMBER); }	YY_BREAKcase 27:YY_RULE_SETUP#line 40 "scanholiday.lex"{ yylval.ival =   4; return(NUMBER); }	YY_BREAKcase 28:YY_RULE_SETUP#line 41 "scanholiday.lex"{ yylval.ival =   5; return(NUMBER); }	YY_BREAKcase 29:YY_RULE_SETUP#line 42 "scanholiday.lex"{ yylval.ival = 999; return(NUMBER); }	YY_BREAKcase 30:YY_RULE_SETUP#line 43 "scanholiday.lex"{ yylval.ival =   0; return(NUMBER); }	YY_BREAKcase 31:YY_RULE_SETUP#line 45 "scanholiday.lex"{ yylval.ival =  -1; return(NUMBER); }	YY_BREAKcase 32:YY_RULE_SETUP#line 46 "scanholiday.lex"{ yylval.ival =  -2; return(NUMBER); }	YY_BREAKcase 33:YY_RULE_SETUP#line 48 "scanholiday.lex"{ yylval.ival = atoi(yytext); return(NUMBER); }	YY_BREAKcase 34:YY_RULE_SETUP#line 50 "scanholiday.lex"{ yylval.sval = strdup(yytext+1);				  yylval.sval[strlen(yylval.sval)-1] = 0;				  return(STRING); }	YY_BREAKcase 35:YY_RULE_SETUP#line 54 "scanholiday.lex";	YY_BREAKcase 36:YY_RULE_SETUP#line 55 "scanholiday.lex";	YY_BREAKcase 37:YY_RULE_SETUP#line 56 "scanholiday.lex";	YY_BREAKcase 38:YY_RULE_SETUP#line 57 "scanholiday.lex";	YY_BREAKcase 39:YY_RULE_SETUP#line 58 "scanholiday.lex"{ return(IN);    }	YY_BREAKcase 40:YY_RULE_SETUP#line 59 "scanholiday.lex"{ return(PLUS);  }	YY_BREAKcase 41:YY_RULE_SETUP#line 60 "scanholiday.lex"{ return(MINUS); }	YY_BREAKcase 42:YY_RULE_SETUP#line 61 "scanholiday.lex"{ return(SMALL); }	YY_BREAKcase 43:YY_RULE_SETUP#line 62 "scanholiday.lex"{ return(CYEAR);  }	YY_BREAKcase 44:YY_RULE_SETUP#line 63 "scanholiday.lex"{ return(LEAPYEAR); }	YY_BREAKcase 45:YY_RULE_SETUP#line 64 "scanholiday.lex"{ return(EASTER); }	YY_BREAKcase 46:YY_RULE_SETUP#line 65 "scanholiday.lex"{ return(LENGTH); }	YY_BREAKcase 47:YY_RULE_SETUP#line 67 "scanholiday.lex"{ yylval.ival = 1; return(COLOR); }	YY_BREAKcase 48:YY_RULE_SETUP#line 68 "scanholiday.lex"{ yylval.ival = 2; return(COLOR); }	YY_BREAKcase 49:YY_RULE_SETUP#line 69 "scanholiday.lex"{ yylval.ival = 3; return(COLOR); }	YY_BREAKcase 50:YY_RULE_SETUP#line 70 "scanholiday.lex"{ yylval.ival = 4; return(COLOR); }	YY_BREAKcase 51:YY_RULE_SETUP#line 71 "scanholiday.lex"{ yylval.ival = 5; return(COLOR); }	YY_BREAKcase 52:YY_RULE_SETUP#line 72 "scanholiday.lex"{ yylval.ival = 6; return(COLOR); }	YY_BREAKcase 53:YY_RULE_SETUP#line 73 "scanholiday.lex"{ yylval.ival = 7; return(COLOR); }	YY_BREAKcase 54:YY_RULE_SETUP#line 74 "scanholiday.lex"{ yylval.ival = 8; return(COLOR); }	YY_BREAKcase 55:YY_RULE_SETUP#line 75 "scanholiday.lex"{ yylval.ival = 9; return(COLOR); }	YY_BREAKcase 56:YY_RULE_SETUP#line 77 "scanholiday.lex"{ return(EQ); }	YY_BREAKcase 57:YY_RULE_SETUP#line 78 "scanholiday.lex"{ return(NE); }	YY_BREAKcase 58:YY_RULE_SETUP#line 79 "scanholiday.lex"{ return(LE); }	YY_BREAKcase 59:YY_RULE_SETUP#line 80 "scanholiday.lex"{ return(GE); }	YY_BREAKcase 60:YY_RULE_SETUP#line 81 "scanholiday.lex"{ return(LT); }	YY_BREAKcase 61:YY_RULE_SETUP#line 82 "scanholiday.lex"{ return(GT); }	YY_BREAKcase 62:YY_RULE_SETUP#line 83 "scanholiday.lex"{ return(AND);}	YY_BREAKcase 63:YY_RULE_SETUP#line 84 "scanholiday.lex"{ return(OR); }	YY_BREAKcase 64:YY_RULE_SETUP#line 86 "scanholiday.lex"{ printf("holiday: bad char: %s \n", yytext); }	YY_BREAKcase 65:YY_RULE_SETUP#line 88 "scanholiday.lex"ECHO;	YY_BREAK#line 1096 "scanholiday.c"case YY_STATE_EOF(INITIAL):	yyterminate();	case YY_END_OF_BUFFER:		{		/* Amount of text matched not including the EOB char. */		int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;		/* Undo the effects of YY_DO_BEFORE_ACTION. */		*yy_cp = yy_hold_char;		YY_RESTORE_YY_MORE_OFFSET		if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )			{			/* We're scanning a new file or input source.  It's			 * possible that this happened because the user			 * just pointed yyin at a new source and called			 * yylex().  If so, then we have to assure			 * consistency between yy_current_buffer and our			 * globals.  Here is the right place to do so, because			 * this is the first action (other than possibly a			 * back-up) that will match for the new input source.			 */			yy_n_chars = yy_current_buffer->yy_n_chars;			yy_current_buffer->yy_input_file = yyin;			yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;			}		/* Note that here we test for yy_c_buf_p "<=" to the position		 * of the first EOB in the buffer, since yy_c_buf_p will		 * already have been incremented past the NUL character		 * (since all states make transitions on EOB to the		 * end-of-buffer state).  Contrast this with the test		 * in input().		 */		if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )			{ /* This was really a NUL. */			yy_state_type yy_next_state;			yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;			yy_current_state = yy_get_previous_state();			/* Okay, we're now positioned to make the NUL			 * transition.  We couldn't have			 * yy_get_previous_state() go ahead and do it			 * for us because it doesn't know how to deal			 * with the possibility of jamming (and we don't			 * want to build jamming into it because then it			 * will run more slowly).			 */			yy_next_state = yy_try_NUL_trans( yy_current_state );			yy_bp = yytext_ptr + YY_MORE_ADJ;			if ( yy_next_state )				{				/* Consume the NUL. */				yy_cp = ++yy_c_buf_p;				yy_current_state = yy_next_state;				goto yy_match;				}			else				{				yy_cp = yy_last_accepting_cpos;				yy_current_state = yy_last_accepting_state;				goto yy_find_action;				}			}		else switch ( yy_get_next_buffer() )			{			case EOB_ACT_END_OF_FILE:				{				yy_did_buffer_switch_on_eof = 0;				if ( yywrap() )					{					/* Note: because we've taken care in					 * yy_get_next_buffer() to have set up					 * yytext, we can now set up					 * yy_c_buf_p so that if some total					 * hoser (like flex itself) wants to					 * call the scanner after we return the					 * YY_NULL, it'll still work - another					 * YY_NULL will get returned.					 */					yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;					yy_act = YY_STATE_EOF(YY_START);					goto do_action;					}				else					{					if ( ! yy_did_buffer_switch_on_eof )						YY_NEW_FILE;					}				break;				}			case EOB_ACT_CONTINUE_SCAN:				yy_c_buf_p =					yytext_ptr + yy_amount_of_matched_text;				yy_current_state = yy_get_previous_state();				yy_cp = yy_c_buf_p;				yy_bp = yytext_ptr + YY_MORE_ADJ;				goto yy_match;			case EOB_ACT_LAST_MATCH:				yy_c_buf_p =				&yy_current_buffer->yy_ch_buf[yy_n_chars];				yy_current_state = yy_get_previous_state();				yy_cp = yy_c_buf_p;				yy_bp = yytext_ptr + YY_MORE_ADJ;				goto yy_find_action;			}		break;		}	default:		YY_FATAL_ERROR(			"fatal flex scanner internal error--no action found" );	} /* end of action switch */		} /* end of scanning one token */	} /* end of yylex */