#include <stdio.h>
# define U(x) x
# define NLSTATE yyprevious=YYNEWLINE
# define BEGIN yybgin = yysvec + 1 +
# define INITIAL 0
# define YYLERR yysvec
# define YYSTATE (yyestate-yysvec-1)
# define YYOPTIM 1
# define YYLMAX BUFSIZ
#ifndef __cplusplus
# define output(c) (void)putc(c,yyout)
#else
# define lex_output(c) (void)putc(c,yyout)
#endif

#if defined(__cplusplus) || defined(__STDC__)

#if defined(__cplusplus) && defined(__EXTERN_C__)
extern "C" {
#endif
	int yyback(int *, int);
	int yyinput(void);
	int yylook(void);
	void yyoutput(int);
	int yyracc(int);
	int yyreject(void);
	void yyunput(int);
	int yylex(void);
#ifdef YYLEX_E
	void yywoutput(wchar_t);
	wchar_t yywinput(void);
#endif
#ifndef yyless
	int yyless(int);
#endif
#ifndef yywrap
	int yywrap(void);
#endif
#ifdef LEXDEBUG
	void allprint(char);
	void sprint(char *);
#endif
#if defined(__cplusplus) && defined(__EXTERN_C__)
}
#endif

#ifdef __cplusplus
extern "C" {
#endif
	void exit(int);
#ifdef __cplusplus
}
#endif

#endif
# define unput(c) {yytchar= (c);if(yytchar=='\n')yylineno--;*yysptr++=yytchar;}
# define yymore() (yymorfg=1)
#ifndef __cplusplus
# define input() (((yytchar=yysptr>yysbuf?U(*--yysptr):getc(yyin))==10?(yylineno++,yytchar):yytchar)==EOF?0:yytchar)
#else
# define lex_input() (((yytchar=yysptr>yysbuf?U(*--yysptr):getc(yyin))==10?(yylineno++,yytchar):yytchar)==EOF?0:yytchar)
#endif
#define ECHO fprintf(yyout, "%s",yytext)
# define REJECT { nstr = yyreject(); goto yyfussy;}
int yyleng;
char yytext[YYLMAX];
int yymorfg;
extern char *yysptr, yysbuf[];
int yytchar;
FILE *yyin = {stdin}, *yyout = {stdout};
extern int yylineno;
struct yysvf { 
	struct yywork *yystoff;
	struct yysvf *yyother;
	int *yystops;};
struct yysvf *yyestate;
extern struct yysvf yysvec[], *yybgin;

# line 3 "rc.l"
/*
 * Copyright (c) 1992-93 by Mark Boyns (boyns@sdsu.edu)
 *
 * Permission to use, copy, modify, and distribute this software and its
 * documentation for any purpose and without fee is hereby granted, provided
 * that the above copyright notice appear in all copies and that both that
 * copyright notice and this permission notice appear in supporting
 * documentation.  This software is provided "as is" without express or
 * implied warranty.
 */

#include "y.tab.h"
# define YYNEWLINE 10
yylex(){
int nstr; extern int yyprevious;
#ifdef __cplusplus
/* to avoid CC and lint complaining yyfussy not being used ...*/
static int __lex_hack = 0;
if (__lex_hack) goto yyfussy;
#endif
while((nstr = yylook()) >= 0)
yyfussy: switch(nstr){
case 0:
if(yywrap()) return(0); break;
case 1:

# line 21 "rc.l"
;
break;
case 2:

# line 22 "rc.l"
;
break;
case 3:

# line 23 "rc.l"
	return Motd;
break;
case 4:

# line 24 "rc.l"
	return Auto;
break;
case 5:

# line 25 "rc.l"
return Default;
break;
case 6:

# line 26 "rc.l"
return Setenv;
break;
case 7:

# line 27 "rc.l"
return Command;
break;
case 8:

# line 28 "rc.l"
	return Equal;
break;
case 9:

# line 29 "rc.l"
return QuotedString;
break;
case 10:

# line 30 "rc.l"
return String;
break;
case 11:

# line 31 "rc.l"
return NString;
break;
case -1:
break;
default:
(void)fprintf(yyout,"bad switch yylook %d",nstr);
} return(0); }
/* end of yylex */
int yyvstop[] = {
0,

10,
11,
0,

2,
0,

10,
11,
0,

10,
11,
0,

8,
11,
0,

10,
11,
0,

10,
11,
0,

10,
11,
0,

10,
11,
0,

10,
11,
0,

11,
0,

9,
10,
11,
0,

11,
0,

1,
0,

11,
0,

10,
11,
0,

10,
11,
0,

10,
11,
0,

10,
11,
0,

10,
11,
0,

9,
0,

9,
11,
0,

10,
11,
0,

10,
11,
0,

10,
11,
0,

10,
11,
0,

10,
11,
0,

4,
10,
11,
0,

10,
11,
0,

10,
11,
0,

3,
10,
11,
0,

10,
11,
0,

10,
11,
0,

10,
11,
0,

10,
11,
0,

10,
11,
0,

10,
11,
0,

6,
10,
11,
0,

7,
10,
11,
0,

5,
10,
11,
0,
0};
# define YYTYPE unsigned char
struct yywork { YYTYPE verify, advance; } yycrank[] = {
0,0,	0,0,	1,3,	0,0,	
0,0,	16,16,	3,3,	0,0,	
0,0,	0,0,	1,4,	1,4,	
5,5,	0,0,	3,0,	3,0,	
6,6,	0,0,	4,4,	4,4,	
5,14,	5,14,	7,13,	0,0,	
6,17,	6,18,	0,0,	8,0,	
8,0,	0,0,	7,0,	7,0,	
0,0,	10,0,	10,0,	1,5,	
1,6,	3,0,	16,26,	3,3,	
2,6,	4,4,	9,0,	9,0,	
19,19,	5,15,	11,0,	11,0,	
14,14,	6,6,	8,0,	12,0,	
12,0,	7,0,	0,0,	7,13,	
10,0,	15,0,	15,0,	13,13,	
0,0,	17,17,	1,7,	20,0,	
20,0,	9,0,	3,13,	13,0,	
13,0,	11,0,	22,0,	22,0,	
5,16,	0,0,	12,0,	0,0,	
6,19,	19,19,	0,0,	0,0,	
15,0,	14,25,	0,0,	21,0,	
21,0,	0,0,	20,0,	0,0,	
23,0,	23,0,	13,0,	0,0,	
13,13,	22,0,	17,17,	24,0,	
24,0,	0,0,	1,8,	0,0,	
1,9,	1,10,	2,8,	0,0,	
2,9,	2,10,	21,0,	0,0,	
14,14,	0,0,	1,11,	23,0,	
0,0,	0,0,	2,11,	0,0,	
1,12,	0,0,	24,0,	26,13,	
2,12,	17,17,	27,0,	27,0,	
0,0,	10,22,	0,0,	26,0,	
26,0,	0,0,	28,0,	28,0,	
29,0,	29,0,	0,0,	8,20,	
30,0,	30,0,	0,0,	31,0,	
31,0,	32,0,	32,0,	12,24,	
9,21,	27,0,	33,0,	33,0,	
11,23,	0,0,	26,0,	0,0,	
26,13,	28,0,	0,0,	29,0,	
34,0,	34,0,	0,0,	30,0,	
0,0,	0,0,	31,0,	22,29,	
32,0,	35,0,	35,0,	36,0,	
36,0,	33,0,	20,27,	37,0,	
37,0,	0,0,	38,0,	38,0,	
39,0,	39,0,	0,0,	34,0,	
40,0,	40,0,	0,0,	21,28,	
41,0,	41,0,	42,0,	42,0,	
35,0,	0,0,	36,0,	43,0,	
43,0,	0,0,	37,0,	23,30,	
0,0,	38,0,	0,0,	39,0,	
44,0,	44,0,	24,31,	40,0,	
0,0,	0,0,	0,0,	41,0,	
0,0,	42,0,	0,0,	0,0,	
0,0,	0,0,	43,0,	0,0,	
0,0,	0,0,	0,0,	0,0,	
29,34,	0,0,	0,0,	44,0,	
27,32,	0,0,	0,0,	30,35,	
0,0,	0,0,	28,33,	31,36,	
0,0,	0,0,	33,37,	0,0,	
0,0,	0,0,	0,0,	0,0,	
0,0,	0,0,	0,0,	0,0,	
0,0,	0,0,	0,0,	0,0,	
0,0,	0,0,	0,0,	0,0,	
0,0,	0,0,	0,0,	0,0,	
0,0,	0,0,	0,0,	0,0,	
0,0,	0,0,	0,0,	0,0,	
34,38,	0,0,	0,0,	0,0,	
36,39,	0,0,	0,0,	40,43,	
37,40,	38,41,	0,0,	0,0,	
0,0,	0,0,	0,0,	0,0,	
0,0,	0,0,	0,0,	0,0,	
0,0,	39,42,	0,0,	0,0,	
0,0,	0,0,	0,0,	41,44,	
0,0};
struct yysvf yysvec[] = {
0,	0,	0,
yycrank+-1,	0,		0,	
yycrank+-5,	yysvec+1,	0,	
yycrank+-5,	0,		yyvstop+1,
yycrank+9,	0,		yyvstop+4,
yycrank+-11,	0,		yyvstop+6,
yycrank+-15,	0,		yyvstop+9,
yycrank+-21,	yysvec+3,	yyvstop+12,
yycrank+-18,	yysvec+3,	yyvstop+15,
yycrank+-33,	yysvec+3,	yyvstop+18,
yycrank+-24,	yysvec+3,	yyvstop+21,
yycrank+-37,	yysvec+3,	yyvstop+24,
yycrank+-42,	yysvec+3,	yyvstop+27,
yycrank+-58,	yysvec+3,	yyvstop+30,
yycrank+-47,	yysvec+5,	0,	
yycrank+-48,	yysvec+3,	yyvstop+32,
yycrank+-4,	yysvec+5,	yyvstop+36,
yycrank+-60,	yysvec+6,	0,	
yycrank+0,	0,		yyvstop+38,
yycrank+-43,	yysvec+6,	yyvstop+40,
yycrank+-54,	yysvec+3,	yyvstop+42,
yycrank+-74,	yysvec+3,	yyvstop+45,
yycrank+-61,	yysvec+3,	yyvstop+48,
yycrank+-79,	yysvec+3,	yyvstop+51,
yycrank+-86,	yysvec+3,	yyvstop+54,
yycrank+0,	0,		yyvstop+57,
yycrank+-118,	yysvec+3,	yyvstop+59,
yycrank+-113,	yysvec+3,	yyvstop+62,
yycrank+-121,	yysvec+3,	yyvstop+65,
yycrank+-123,	yysvec+3,	yyvstop+68,
yycrank+-127,	yysvec+3,	yyvstop+71,
yycrank+-130,	yysvec+3,	yyvstop+74,
yycrank+-132,	yysvec+3,	yyvstop+77,
yycrank+-137,	yysvec+3,	yyvstop+81,
yycrank+-147,	yysvec+3,	yyvstop+84,
yycrank+-156,	yysvec+3,	yyvstop+87,
yycrank+-158,	yysvec+3,	yyvstop+91,
yycrank+-162,	yysvec+3,	yyvstop+94,
yycrank+-165,	yysvec+3,	yyvstop+97,
yycrank+-167,	yysvec+3,	yyvstop+100,
yycrank+-171,	yysvec+3,	yyvstop+103,
yycrank+-175,	yysvec+3,	yyvstop+106,
yycrank+-177,	yysvec+3,	yyvstop+109,
yycrank+-182,	yysvec+3,	yyvstop+113,
yycrank+-191,	yysvec+3,	yyvstop+117,
0,	0,	0};
struct yywork *yytop = yycrank+291;
struct yysvf *yybgin = yysvec+1;
char yymatch[] = {
  0,   1,   1,   1,   1,   1,   1,   1, 
  1,   9,  10,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  9,   1,  34,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,  61,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
  1,   1,   1,   1,   1,   1,   1,   1, 
0};
char yyextra[] = {
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0};
/*	Copyright (c) 1989 AT&T	*/
/*	  All Rights Reserved  	*/

/*	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T	*/
/*	The copyright notice above does not evidence any   	*/
/*	actual or intended publication of such source code.	*/

#pragma ident	"@(#)ncform	6.8	95/02/11 SMI"

int yylineno =1;
# define YYU(x) x
# define NLSTATE yyprevious=YYNEWLINE
struct yysvf *yylstate [YYLMAX], **yylsp, **yyolsp;
char yysbuf[YYLMAX];
char *yysptr = yysbuf;
int *yyfnd;
extern struct yysvf *yyestate;
int yyprevious = YYNEWLINE;
#if defined(__cplusplus) || defined(__STDC__)
int yylook(void)
#else
yylook()
#endif
{
	register struct yysvf *yystate, **lsp;
	register struct yywork *yyt;
	struct yysvf *yyz;
	int yych, yyfirst;
	struct yywork *yyr;
# ifdef LEXDEBUG
	int debug;
# endif
	char *yylastch;
	/* start off machines */
# ifdef LEXDEBUG
	debug = 0;
# endif
	yyfirst=1;
	if (!yymorfg)
		yylastch = yytext;
	else {
		yymorfg=0;
		yylastch = yytext+yyleng;
		}
	for(;;){
		lsp = yylstate;
		yyestate = yystate = yybgin;
		if (yyprevious==YYNEWLINE) yystate++;
		for (;;){
# ifdef LEXDEBUG
			if(debug)fprintf(yyout,"state %d\n",yystate-yysvec-1);
# endif
			yyt = yystate->yystoff;
			if(yyt == yycrank && !yyfirst){  /* may not be any transitions */
				yyz = yystate->yyother;
				if(yyz == 0)break;
				if(yyz->yystoff == yycrank)break;
				}
#ifndef __cplusplus
			*yylastch++ = yych = input();
#else
			*yylastch++ = yych = lex_input();
#endif
			if(yylastch > &yytext[YYLMAX]) {
				fprintf(yyout,"Input string too long, limit %d\n",YYLMAX);
				exit(1);
			}
			yyfirst=0;
		tryagain:
# ifdef LEXDEBUG
			if(debug){
				fprintf(yyout,"char ");
				allprint(yych);
				putchar('\n');
				}
# endif
			yyr = yyt;
			if ( (int)yyt > (int)yycrank){
				yyt = yyr + yych;
				if (yyt <= yytop && yyt->verify+yysvec == yystate){
					if(yyt->advance+yysvec == YYLERR)	/* error transitions */
						{unput(*--yylastch);break;}
					*lsp++ = yystate = yyt->advance+yysvec;
					if(lsp > &yylstate[YYLMAX]) {
						fprintf(yyout,"Input string too long, limit %d\n",YYLMAX);
						exit(1);
					}
					goto contin;
					}
				}
# ifdef YYOPTIM
			else if((int)yyt < (int)yycrank) {		/* r < yycrank */
				yyt = yyr = yycrank+(yycrank-yyt);
# ifdef LEXDEBUG
				if(debug)fprintf(yyout,"compressed state\n");
# endif
				yyt = yyt + yych;
				if(yyt <= yytop && yyt->verify+yysvec == yystate){
					if(yyt->advance+yysvec == YYLERR)	/* error transitions */
						{unput(*--yylastch);break;}
					*lsp++ = yystate = yyt->advance+yysvec;
					if(lsp > &yylstate[YYLMAX]) {
						fprintf(yyout,"Input string too long, limit %d\n",YYLMAX);
						exit(1);
					}
					goto contin;
					}
				yyt = yyr + YYU(yymatch[yych]);
# ifdef LEXDEBUG
				if(debug){
					fprintf(yyout,"try fall back character ");
					allprint(YYU(yymatch[yych]));
					putchar('\n');
					}
# endif
				if(yyt <= yytop && yyt->verify+yysvec == yystate){
					if(yyt->advance+yysvec == YYLERR)	/* error transition */
						{unput(*--yylastch);break;}
					*lsp++ = yystate = yyt->advance+yysvec;
					if(lsp > &yylstate[YYLMAX]) {
						fprintf(yyout,"Input string too long, limit %d\n",YYLMAX);
						exit(1);
					}
					goto contin;
					}
				}
			if ((yystate = yystate->yyother) && (yyt= yystate->yystoff) != yycrank){
# ifdef LEXDEBUG
				if(debug)fprintf(yyout,"fall back to state %d\n",yystate-yysvec-1);
# endif
				goto tryagain;
				}
# endif
			else
				{unput(*--yylastch);break;}
		contin:
# ifdef LEXDEBUG
			if(debug){
				fprintf(yyout,"state %d char ",yystate-yysvec-1);
				allprint(yych);
				putchar('\n');
				}
# endif
			;
			}
# ifdef LEXDEBUG
		if(debug){
			fprintf(yyout,"stopped at %d with ",*(lsp-1)-yysvec-1);
			allprint(yych);
			putchar('\n');
			}
# endif
		while (lsp-- > yylstate){
			*yylastch-- = 0;
			if (*lsp != 0 && (yyfnd= (*lsp)->yystops) && *yyfnd > 0){
				yyolsp = lsp;
				if(yyextra[*yyfnd]){		/* must backup */
					while(yyback((*lsp)->yystops,-*yyfnd) != 1 && lsp > yylstate){
						lsp--;
						unput(*yylastch--);
						}
					}
				yyprevious = YYU(*yylastch);
				yylsp = lsp;
				yyleng = yylastch-yytext+1;
				yytext[yyleng] = 0;
# ifdef LEXDEBUG
				if(debug){
					fprintf(yyout,"\nmatch ");
					sprint(yytext);
					fprintf(yyout," action %d\n",*yyfnd);
					}
# endif
				return(*yyfnd++);
				}
			unput(*yylastch);
			}
		if (yytext[0] == 0  /* && feof(yyin) */)
			{
			yysptr=yysbuf;
			return(0);
			}
#ifndef __cplusplus
		yyprevious = yytext[0] = input();
		if (yyprevious>0)
			output(yyprevious);
#else
		yyprevious = yytext[0] = lex_input();
		if (yyprevious>0)
			lex_output(yyprevious);
#endif
		yylastch=yytext;
# ifdef LEXDEBUG
		if(debug)putchar('\n');
# endif
		}
	}
#if defined(__cplusplus) || defined(__STDC__)
int yyback(int *p, int m)
#else
yyback(p, m)
	int *p;
#endif
{
	if (p==0) return(0);
	while (*p) {
		if (*p++ == m)
			return(1);
	}
	return(0);
}
	/* the following are only used in the lex library */
#if defined(__cplusplus) || defined(__STDC__)
int yyinput(void)
#else
yyinput()
#endif
{
#ifndef __cplusplus
	return(input());
#else
	return(lex_input());
#endif
	}
#if defined(__cplusplus) || defined(__STDC__)
void yyoutput(int c)
#else
yyoutput(c)
  int c; 
#endif
{
#ifndef __cplusplus
	output(c);
#else
	lex_output(c);
#endif
	}
#if defined(__cplusplus) || defined(__STDC__)
void yyunput(int c)
#else
yyunput(c)
   int c; 
#endif
{
	unput(c);
	}
