/* A lexical scanner generated by flex */

/* Scanner skeleton version:
 * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.38 93/11/29 17:13:53 vern Exp $
 */

#define FLEX_SCANNER

#include <stdio.h>


/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
#ifdef c_plusplus
#ifndef __cplusplus
#define __cplusplus
#endif
#endif


#ifdef __cplusplus

#include <stdlib.h>
#include <unistd.h>

/* Use prototypes in function declarations. */
#define YY_USE_PROTOS

/* The "const" storage-class-modifier is valid. */
#define YY_USE_CONST

#else	/* ! __cplusplus */

#ifdef __STDC__

#define YY_USE_PROTOS
#define YY_USE_CONST

#endif	/* __STDC__ */
#endif	/* ! __cplusplus */


#ifdef __TURBOC__
#define YY_USE_CONST
#endif


#ifndef YY_USE_CONST
#ifndef const
#define const
#endif
#endif


#ifdef YY_USE_PROTOS
#define YY_PROTO(proto) proto
#else
#define YY_PROTO(proto) ()
#endif

/* Returned upon end-of-file. */
#define YY_NULL 0

/* Enter a start condition.  This macro really ought to take a parameter,
 * but we do it the disgusting crufty way forced on us by the ()-less
 * definition of BEGIN.
 */
#define BEGIN yy_start = 1 + 2 *

/* Translate the current start state into a value that can be later handed
 * to BEGIN to return to the state.
 */
#define YY_START ((yy_start - 1) / 2)

/* Action number for EOF rule of a given start state. */
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)

/* Special action meaning "start processing a new file".  Now included
 * only for backward compatibility with previous versions of flex.
 */
#define YY_NEW_FILE yyrestart( yyin )

#define YY_END_OF_BUFFER_CHAR 0

/* Size of default input buffer. */
#define YY_BUF_SIZE 16384

typedef struct yy_buffer_state *YY_BUFFER_STATE;

extern int yyleng;
extern FILE *yyin, *yyout;

#ifdef __cplusplus
extern "C" {
#endif
	extern void *yy_flex_alloc YY_PROTO(( int ));
	extern void *yy_flex_realloc YY_PROTO(( void *ptr, int size ));
	extern void yy_flex_free YY_PROTO(( void * ));
	extern int yywrap YY_PROTO(( void ));
#ifdef __cplusplus
	}
#endif

#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2

/* The funky do-while in the following #define is used to turn the definition
 * int a single C statement (which needs a semi-colon terminator).  This
 * avoids problems with code like:
 *
 * 	if ( condition_holds )
 *		yyless( 5 );
 *	else
 *		do_something_else();
 *
 * Prior to using the do-while the compiler would get upset at the
 * "else" because it interpreted the "if" statement as being all
 * done when it reached the ';' after the yyless() call.
 */

/* Return all but the first 'n' matched characters back to the input stream. */

#define yyless(n) \
	do \
		{ \
		/* Undo effects of setting up yytext. */ \
		*yy_cp = yy_hold_char; \
		yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
		YY_DO_BEFORE_ACTION; /* set up yytext again */ \
		} \
	while ( 0 )

#define unput(c) yyunput( c, yytext_ptr )


struct yy_buffer_state
	{
	FILE *yy_input_file;

	char *yy_ch_buf;		/* input buffer */
	char *yy_buf_pos;		/* current position in input buffer */

	/* Size of input buffer in bytes, not including room for EOB
	 * characters.
	 */
	int yy_buf_size;

	/* Number of characters read into yy_ch_buf, not including EOB
	 * characters.
	 */
	int yy_n_chars;

	/* Whether this is an "interactive" input source; if so, and
	 * if we're using stdio for input, then we want to use getc()
	 * instead of fread(), to make sure we stop fetching input after
	 * each newline.
	 */
	int is_interactive;

	/* Whether we've seen an EOF on this buffer. */
	int yy_eof_status;
#define EOF_NOT_SEEN 0
	/* "Pending" happens when the EOF has been seen but there's still
	 * some text to process.  Note that when we actually see the EOF,
	 * we switch the status back to "not seen" (via yyrestart()), so
	 * that the user can continue scanning by just pointing yyin at
	 * a new input file.
	 */
#define EOF_PENDING 1
	};

static YY_BUFFER_STATE yy_current_buffer = 0;

/* We provide macros for accessing buffer states in case in the
 * future we want to put the buffer states in a more general
 * "scanner state".
 */
#define YY_CURRENT_BUFFER yy_current_buffer


/* yy_hold_char holds the character lost when yytext is formed. */
static char yy_hold_char;

static int yy_n_chars;		/* number of characters read into yy_ch_buf */


int yyleng;

/* Points to current character in buffer. */
static char *yy_c_buf_p = (char *) 0;
static int yy_init = 1;		/* whether we need to initialize */
static int yy_start = 0;	/* start state number */

/* Flag which is used to allow yywrap()'s to do buffer switches
 * instead of setting up a fresh yyin.  A bit of a hack ...
 */
static int yy_did_buffer_switch_on_eof;

static void yyunput YY_PROTO(( int c, char *buf_ptr ));
void yyrestart YY_PROTO(( FILE *input_file ));
void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
void yy_load_buffer_state YY_PROTO(( void ));
YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));

#define yy_new_buffer yy_create_buffer

#define INITIAL 0
#define Alltext 1
typedef unsigned char YY_CHAR;
typedef int yy_state_type;
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
extern char *yytext;
#define yytext_ptr yytext

#ifdef __cplusplus
static int yyinput YY_PROTO(( void ));
#else
static int input YY_PROTO(( void ));
#endif

static yy_state_type yy_get_previous_state YY_PROTO(( void ));
static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
static int yy_get_next_buffer YY_PROTO(( void ));
static void yy_fatal_error YY_PROTO(( const char msg[] ));

/* Done after the current pattern has been matched and before the
 * corresponding action - sets up yytext.
 */
#define YY_DO_BEFORE_ACTION \
	yytext_ptr = yy_bp; \
	yyleng = yy_cp - yy_bp; \
	yy_hold_char = *yy_cp; \
	*yy_cp = '\0'; \
	yy_c_buf_p = yy_cp;

#define YY_END_OF_BUFFER 19
static const short int yy_accept[199] =
    {   0,
        9,    9,    9,    9,   19,   16,    9,   11,   16,   16,
       16,   16,   16,   16,   16,   16,   17,    9,   10,   16,
        2,   16,    9,    1,   16,   16,   16,   16,   16,   16,
       16,   16,   17,    9,    1,   16,    2,   16,    9,   11,
        0,    0,    0,    0,    0,   16,    0,   16,   16,    0,
       15,   16,    0,   16,   16,   16,   16,   16,   16,   12,
        9,   10,    0,   16,    0,    2,    2,   16,    0,    1,
        9,    1,    0,    0,    0,    0,    0,   16,    0,   16,
       16,    0,   15,   16,    0,   16,   16,   16,   16,   16,
       16,   12,    9,    1,    0,   16,    0,    2,    2,    0,

        0,    0,    0,    0,    0,   14,   14,    0,   13,   13,
       16,   16,   16,   16,   16,    0,    0,    0,    0,    0,
        0,   14,    1,    0,   13,    1,   16,   16,   16,   16,
       16,    0,    0,    0,    0,    0,   16,   16,   16,   16,
       16,    0,    0,    0,    0,    0,   16,   16,   16,   16,
       16,    0,    0,    0,    0,    0,   16,   16,    3,    8,
        4,    0,    0,    0,    0,    0,   16,   16,    3,    8,
        4,    0,    0,    3,    8,    4,    5,   16,    7,    0,
        0,    3,    8,    4,    5,   16,    7,    5,    0,    7,
        6,    5,    0,    7,    6,    6,    6,    0

    } ;

static const YY_CHAR yy_ec[256] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    2,    1,    4,    5,    6,    1,    1,    7,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    8,    1,
        1,    1,    1,    1,    9,   10,    1,   11,   12,    1,
       13,    1,    1,    1,    1,   14,    1,    1,   15,   16,
        1,    1,   17,   18,    1,   19,    1,    1,    1,    1,
        1,    1,    1,    1,   20,    1,    9,   10,    1,   11,

       12,    1,   13,    1,    1,    1,    1,   14,    1,    1,
       15,   16,    1,    1,   17,   18,    1,   19,    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
    } ;

static const YY_CHAR yy_meta[21] =
    {   0,
        1,    2,    3,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1
    } ;

static const short int yy_base[234] =
    {   0,
        0,   19,   27,   46,  434,    0,   53,  435,   21,   50,
        0,   55,  424,  418,  416,   41,    0,   58,  435,   66,
      428,   69,   71,  435,   75,   78,   84,   87,   89,   93,
       97,  111,   99,  128,  435,  101,  103,    0,    0,  435,
      426,  419,  413,  411,   99,  107,  421,  119,  113,  421,
        0,  117,  416,  125,  404,  406,  405,  400,  403,    0,
        0,  435,  414,  123,  413,  413,    0,  132,  411,  435,
      135,  435,  410,  140,  133,  141,  143,  151,  147,  155,
      160,  409,  162,  164,   90,  166,  161,  163,  165,  166,
      173,  174,    0,  435,  408,  184,  407,  187,  406,  390,

      392,  391,  386,  389,  190,  399,  435,  193,  395,  435,
      392,  390,  383,  386,  381,  194,  145,  195,  196,  198,
      200,  202,  435,  214,  204,  435,  200,  210,  213,  214,
      218,  387,  385,  378,  381,  376,  371,  381,  369,  368,
      367,  205,  227,  222,  221,  232,  231,  232,  234,  235,
      238,  366,  376,  364,  363,  362,    0,  288,    0,    0,
        0,  239,  236,  243,  254,  257,  259,  255,  257,  265,
      261,    0,  287,  435,    0,  435,    0,  280,    0,  269,
      262,  296,  278,  295,  280,  269,  282,    0,  276,    0,
        0,  288,  283,  290,  279,  435,  292,  435,  293,  303,

      305,  117,  308,  109,  310,  313,  315,  318,  321,  324,
      327,  330,  333,  336,  339,  342,  345,  347,  349,  352,
      354,  357,  360,  363,  366,   82,   74,  369,  372,   64,
       25,  375,  378
    } ;

static const short int yy_def[234] =
    {   0,
      198,    1,  198,    3,  198,  199,  198,  198,  200,  201,
      202,  203,  199,  199,  199,  199,  204,    7,  198,  205,
      206,  207,  208,  198,  209,  210,  211,  212,  207,  207,
      207,  207,  213,  208,  198,  214,  215,  199,    7,  198,
      216,  198,  198,  198,  198,  200,  217,  200,  201,  216,
      202,  203,  218,  203,  199,  199,  199,  199,  199,  204,
       18,  198,  219,  205,  219,  206,  220,  207,  208,  198,
       34,  198,  221,  208,  208,  208,  208,  209,  222,  209,
      210,  221,  211,  212,  223,  212,   32,   32,   32,   32,
       32,  213,   34,  198,  224,  214,  224,  215,  225,  198,

      198,  198,  198,  198,  217,  217,  198,  218,  218,  198,
      199,  199,  199,  199,  199,  208,  208,  208,  208,  208,
      222,  222,  198,  223,  223,  198,   32,   32,   32,   32,
       32,  198,  198,  198,  198,  198,  199,  199,  199,  199,
      199,  208,  208,  208,  208,  208,   32,   32,   32,   32,
       32,  198,  198,  198,  198,  198,  226,  199,  199,  227,
      199,  208,  208,  208,  208,  208,  228,   32,   32,  229,
       32,  230,  198,  198,  231,  198,  226,  199,  227,  232,
      208,  208,  233,  208,  228,   32,  229,  230,  198,  231,
      199,  232,  208,  233,   32,  198,  208,    0,  198,  198,

      198,  198,  198,  198,  198,  198,  198,  198,  198,  198,
      198,  198,  198,  198,  198,  198,  198,  198,  198,  198,
      198,  198,  198,  198,  198,  198,  198,  198,  198,  198,
      198,  198,  198
    } ;

static const short int yy_nxt[456] =
    {   0,
        6,    7,    8,    9,   10,   11,   12,    6,    6,    6,
       13,    6,   14,   15,    6,    6,   16,    6,    6,   17,
       18,   19,   47,   20,   48,  190,   21,   22,   23,   24,
       25,   26,   27,   28,   22,   22,   22,   29,   22,   30,
       31,   22,   22,   32,   22,   22,   33,   34,   35,   58,
       36,   50,   40,   37,   39,   40,   53,   41,   59,   61,
       62,   54,   63,   42,  188,   43,   44,   65,   62,   45,
       69,   70,   71,   72,  179,   73,   79,   70,   80,   82,
       72,   74,  177,   75,   76,   69,   70,   77,   85,   70,
       69,   70,   70,   86,   69,   70,  124,   87,   69,   70,

       69,   70,   97,   94,   99,   70,   88,  103,   47,   60,
       48,   89,   69,   70,   50,   40,  104,   51,   53,   90,
      106,  107,   48,   54,   65,   62,  109,  110,   91,   93,
       94,   54,   95,   69,   70,   70,   71,   72,   74,   73,
       75,   76,   70,   70,   77,   70,  117,   70,  116,   70,
      121,  119,   79,   70,   80,  118,  122,  123,   80,  143,
      120,   82,   72,   69,   70,   85,   70,  125,  126,   68,
       86,   68,   86,   68,   68,   69,   70,  128,  127,  129,
       68,   68,   68,   68,  130,   97,   94,  131,   99,   70,
       68,  106,  107,  105,  109,  110,   70,   70,   70,  108,

       70,  122,  123,  121,   70,  121,   70,   70,  147,  144,
      124,  142,  146,  162,  145,  125,  126,   68,   68,  148,
      124,   68,   68,   70,   70,  150,   68,   68,  149,   70,
       68,   68,  165,  151,   70,   68,  163,  164,   70,   68,
      168,   70,   68,   68,  181,   70,   68,  166,   68,   68,
      167,   68,   68,  169,  170,   68,   70,  171,  180,   70,
       69,   70,  182,   68,   70,   68,   69,   70,  186,   68,
       69,   70,   68,  183,   68,  193,  184,   68,   68,   69,
       70,   69,   70,   69,   70,   70,   68,   68,  195,   69,
       70,   69,   70,   38,   70,  196,   68,   70,   70,  191,

      189,  178,  197,   46,   46,   49,   49,   49,   52,   52,
       64,   64,   64,   66,   66,   68,   68,   68,   69,   69,
       69,   78,   78,   78,   81,   81,   81,   83,   83,   83,
       84,   84,   84,   92,   92,   92,   96,   96,   96,   98,
       98,   98,   50,   50,   50,   47,   47,   53,   53,   65,
       65,   65,   67,   67,   82,   82,   82,   79,   79,   79,
       85,   85,   85,   97,   97,   97,   99,   99,   99,  185,
      185,  185,  187,  187,  187,  192,  192,  192,  194,  194,
      194,  176,  175,  174,  173,  172,  161,  160,  159,  158,
      157,  156,  155,  154,  153,  152,  141,  140,  139,  138,

      137,  108,  105,  136,  135,  134,  133,  132,   70,   94,
       94,   72,   72,   70,   67,   62,   62,  115,  114,  113,
      112,  111,  108,   40,  105,  102,  101,  100,   40,   67,
       57,   56,   55,  198,    5,  198,  198,  198,  198,  198,
      198,  198,  198,  198,  198,  198,  198,  198,  198,  198,
      198,  198,  198,  198,  198
    } ;

static const short int yy_chk[456] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        2,    2,    9,    2,    9,  231,    2,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    4,    4,   16,
        4,   10,   10,    4,    7,    7,   12,    7,   16,   18,
       18,   12,   18,    7,  230,    7,    7,   20,   20,    7,
       22,   22,   23,   23,  227,   23,   25,   25,   25,   26,
       26,   23,  226,   23,   23,   27,   27,   23,   28,   28,
       29,   29,   85,   28,   30,   30,   85,   29,   31,   31,

       33,   33,   36,   36,   37,   37,   30,   45,   46,  204,
       46,   31,   32,   32,   49,   49,   45,  202,   52,   32,
       48,   48,   48,   52,   64,   64,   54,   54,   32,   34,
       34,   54,   34,   68,   68,   75,   71,   71,   34,   71,
       34,   34,   74,   76,   34,   77,   75,  117,   74,   79,
       79,   77,   78,   78,   78,   76,   80,   80,   80,  117,
       77,   81,   81,   83,   83,   84,   84,   86,   86,   87,
       84,   88,   86,   89,   90,   92,   92,   88,   87,   89,
       88,   91,   89,   90,   90,   96,   96,   91,   98,   98,
       91,  105,  105,  105,  108,  108,  116,  118,  119,  108,

      120,  121,  121,  121,  122,  122,  125,  142,  127,  118,
      125,  116,  120,  142,  119,  124,  124,  127,  128,  128,
      124,  129,  130,  145,  144,  130,  131,  128,  129,  143,
      129,  130,  145,  131,  146,  131,  143,  144,  163,  147,
      148,  162,  149,  150,  163,  164,  151,  146,  147,  148,
      147,  149,  150,  149,  150,  151,  165,  151,  162,  166,
      167,  167,  164,  168,  181,  169,  170,  170,  168,  171,
      180,  180,  168,  165,  169,  181,  166,  186,  171,  183,
      183,  185,  185,  187,  187,  193,  186,  195,  186,  192,
      192,  194,  194,  199,  197,  189,  195,  184,  182,  178,

      173,  158,  193,  200,  200,  201,  201,  201,  203,  203,
      205,  205,  205,  206,  206,  207,  207,  207,  208,  208,
      208,  209,  209,  209,  210,  210,  210,  211,  211,  211,
      212,  212,  212,  213,  213,  213,  214,  214,  214,  215,
      215,  215,  216,  216,  216,  217,  217,  218,  218,  219,
      219,  219,  220,  220,  221,  221,  221,  222,  222,  222,
      223,  223,  223,  224,  224,  224,  225,  225,  225,  228,
      228,  228,  229,  229,  229,  232,  232,  232,  233,  233,
      233,  156,  155,  154,  153,  152,  141,  140,  139,  138,
      137,  136,  135,  134,  133,  132,  115,  114,  113,  112,

      111,  109,  106,  104,  103,  102,  101,  100,   99,   97,
       95,   82,   73,   69,   66,   65,   63,   59,   58,   57,
       56,   55,   53,   50,   47,   44,   43,   42,   41,   21,
       15,   14,   13,    5,  198,  198,  198,  198,  198,  198,
      198,  198,  198,  198,  198,  198,  198,  198,  198,  198,
      198,  198,  198,  198,  198
    } ;

static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;

/* The intent behind this definition is that it'll catch
 * any uses of REJECT which flex missed.
 */
#define REJECT reject_used_but_not_detected
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
char *yytext;
# line 1 "star.l"
/* @(#)star.l	1.10	2/10/93 */
/*******************************************************************************

This code was written and designed by 
Andrew Gene HALL of I.N. Services Pty. Ltd., Scarborough WA, Australia,
for the 
University of Western Australia, Crawley WA, Australia.

*******************************************************************************/
/* Lex Definitions for a STAR File */
# line 13 "star.l"

/* Global Definitions */
#include <ctype.h>

#ifdef FLEX_SCANNER
/* problem with GNUC redefining size_t etc */
/* these definitions are pinched directly from /usr/include/string.h */
extern char *	strcat(/* char *s1, const char *s2 */);
extern char *	strncat(/* char *s1, const char *s2, size_t n */);
extern char *	strchr(/* const char *s, int c */);
extern int      strcmp(/* const char *s1, const char *s2 */);
#ifndef	_POSIX_SOURCE
extern char *	strdup(/* char *s1 */);
#endif
extern size_t	strlen(/* const char *s */);
#else
#include <malloc.h>
#include <string.h>
#endif

/* Local Definitions */

/* redefine yywrap */
#ifdef yywrap
#undef yywrap
#endif
#define yywrap			star_wrap
#define yy_init_buffer		star_init_buffer
#define yyin			star_in
#define yy_switch_to_buffer	star_switch_to_buffer
#define yyout			star_out
#define yy_delete_buffer	star_delete_buffer
#define yy_create_buffer	star_create_buffer
#define yyrestart		star_restart
#define yy_load_buffer_state	star_load_buffer_state
extern int	yywrap();

/* redefine yylex */
#ifdef yylex
#undef yylex
#endif
#define yylex star_scanner

extern char * 	tmp_string;
/* Lex Rules fo a STAR File */

/* Macros after this point can all be overridden by user definitions in
 * section 1.
 */

/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#define YY_READ_BUF_SIZE 8192
#endif

/* Copy whatever the last rule matched to the standard output. */

#ifndef ECHO
/* This used to be an fputs(), but since the string might contain NUL's,
 * we now use fwrite().
 */
#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
#endif

/* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
 * is returned in "result".
 */
#ifndef YY_INPUT
#define YY_INPUT(buf,result,max_size) \
	if ( yy_current_buffer->is_interactive ) \
		result = (buf[0] = getc( yyin )) == EOF ? 0 : 1; \
	else if ( ((result = fread( (char *) buf, 1, max_size, yyin )) == 0)\
		  && ferror( yyin ) ) \
		YY_FATAL_ERROR( "input in flex scanner failed" );
#endif

/* No semi-colon after return; correct usage is to write "yyterminate();" -
 * we don't want an extra ';' after the "return" because that will cause
 * some compilers to complain about unreachable statements.
 */
#ifndef yyterminate
#define yyterminate() return YY_NULL
#endif

/* Report a fatal error. */
#ifndef YY_FATAL_ERROR
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
#endif

/* Default declaration of generated scanner - a define so the user can
 * easily add parameters.
 */
#ifndef YY_DECL
#define YY_DECL int yylex YY_PROTO(( void ))
#endif

/* Code executed at the end of each rule. */
#ifndef YY_BREAK
#define YY_BREAK break;
#endif

YY_DECL
	{
	register yy_state_type yy_current_state;
	register char *yy_cp, *yy_bp;
	register int yy_act;

# line 92 "star.l"


	if ( yy_init )
		{
#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_init_buffer( yy_current_buffer, yyin );
		else
			yy_current_buffer =
				yy_create_buffer( yyin, YY_BUF_SIZE );

		yy_load_buffer_state();

		yy_init = 0;
		}

	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;
		if ( yy_bp[-1] == '\n' )
			++yy_current_state;
yy_match:
		do
			{
			register YY_CHAR yy_c = yy_ec[(unsigned int) *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 >= 199 )
					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_base[yy_current_state] != 435 );

yy_find_action:
		yy_act = yy_accept[yy_current_state];

		YY_DO_BEFORE_ACTION;

#ifdef YY_USER_ACTION
		if ( yy_act != YY_END_OF_BUFFER )
			{
			YY_USER_ACTION;
			}
#endif


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:
# line 93 "star.l"
{
			/* check for ; in first column */
			if (yytext[0] == ';') {
			  /* reset to the initial state */
			  BEGIN 0;
			  /* return everything but the ';' to input */
			  yyless(1);
			  /* return the token */
                          DEBUG_MSG("end of SEMI_COLON_BOUNDED_TEXT_STRING");
                          DEBUG_MSG(yytext);
                          /* save input */
                          if( current_di = (Data_Item *)malloc(sizeof(Data_Item))) {
                             current_di->tag = SEMI_COLON_BOUNDED_TEXT_STRING_DI;
			     current_di->value = tmp_string;
                          } else
                              ERROR_MSG("star_scanner: Out of memory.");
			  last_star_token = tmp_string;
                          return( SEMI_COLON_BOUNDED_TEXT_STRING );
			} else {
			  /* save each line of text */
                          DEBUG_MSG("LINE_OF_TEXT");
                          DEBUG_MSG(yytext);
			  /* increment the line count */
			  star_line_count++;
                          /* expand the string for the new input */
                          if( tmp_string = (char *) realloc( tmp_string, (strlen(tmp_string) + strlen(yytext) +1) * sizeof( char ) )) /* CHANGE 9/3 */
                            /* add the input onto the end */
                            tmp_string = strcat( tmp_string, yytext );
                          else
                            ERROR_MSG("star_scanner: Out of memory.");
			  }
			}
	YY_BREAK
case 2:
# line 126 "star.l"
{
			/* return everything but the ';' to input */
			yyless(1);
                     	DEBUG_MSG("start of SEMI_COLON_BOUNDED_TEXT_STRING");
                        DEBUG_MSG(yytext);
                        /* create the empty basis for the contiguous string */
                        if( tmp_string = (char *)malloc(sizeof(char)) )
                           tmp_string[0] = '\0';
                        else
                           ERROR_MSG("star_scanner: Out of memory.");
                        /* set the scanner for consuming all incoming text */
			BEGIN Alltext;
			}
	YY_BREAK
case 3:
# line 140 "star.l"
{
			DEBUG_MSG("LOOP_");
                        DEBUG_MSG(yytext);
			/* save input */
			/* return token */
			last_star_token = yytext;
			return( LOOP_ );
			}
	YY_BREAK
case 4:
# line 149 "star.l"
{
/* does NOt handle blankline being equivalent to stop_ */
			DEBUG_MSG("STOP_");
                        DEBUG_MSG(yytext);
			/* save input */
			/* return token */
			last_star_token = yytext;
			return( STOP_ );
			}
	YY_BREAK
case 5:
# line 159 "star.l"
{
			DEBUG_MSG("DATA_HEADING");
                        DEBUG_MSG(yytext);
			/* save input */
			if( next_DH ) current_DH = strdup( next_DH );
			next_DH = strdup( yytext );
			/* return token */
			last_star_token = yytext;
			return( DATA_HEADING );
                        }
	YY_BREAK
case 6:
# line 170 "star.l"
{
			DEBUG_MSG("GLOBAL_HEADING"); 
			DEBUG_MSG(yytext);
			/* save input */
			if( next_GH ) current_GH = strdup(next_GH);
			next_GH = strdup( yytext );
			/* return token */
			last_star_token = yytext;
			return( GLOBAL_HEADING );
                        }
	YY_BREAK
case 7:
# line 181 "star.l"
{
			DEBUG_MSG("SAVE_HEADING");
                        DEBUG_MSG(yytext);
			/* save input */
			current_SH = strdup( yytext );
			last_star_token = yytext;
			return( SAVE_HEADING );
                        }
	YY_BREAK
case 8:
# line 190 "star.l"
{
			DEBUG_MSG("SAVE_END");
                        DEBUG_MSG(yytext);
			/* return token */
			last_star_token = yytext;
			return( SAVE_END );
                        }
	YY_BREAK
case 9:
# line 198 "star.l"
{
			DEBUG_MSG("PADDING");
                        DEBUG_MSG(yytext);
                     	/* continue with scanning */
                        }
	YY_BREAK
case 10:
# line 205 "star.l"
case 11:
# line 205 "star.l"
{
			DEBUG_MSG("REST_OF_LINE");
			DEBUG_MSG(yytext);
			/* increment the line count */
			star_line_count++;
                     	/* continue with scanning */
                        /* save input */
                        /* return token */
			/* don't return this token,
			 * This is an attempt to improve the robustness of the 
			 * parser.
                        return( REST_OF_LINE );
			 */
                        }
	YY_BREAK
case 12:
# line 220 "star.l"
{
			DEBUG_MSG("DATA_NAME");
			DEBUG_MSG(yytext);
                        /* save input */
			current_DN = strdup( yytext );
                        /* return token */
			last_star_token = yytext;
                        return( DATA_NAME );
                        }
	YY_BREAK
case 13:
# line 230 "star.l"
{
			/* get the longest '.....'blank in the current line */

			char *p;

			p = yytext;
			/* step over first quote */
			p++;
			/* scan to '?
			 * (? == null) or (? == space) => end of string, stop
			 */
			DEBUG_MSG("searching for \' in");
			DEBUG_MSG(p);
			while ( p = strchr( p, '\''))
			   if (isspace( *(++p))) {
			      /* (? == space) => push back rest of the input,
			       *                 S_Q_T_S */
                              /* this is to avoid side effects in the macro */
                              int	i = yyleng - strlen(p);
			      yyless( i ); 
                              p = &yytext[yyleng];
                           }
			   else /* keep searching */
			      DEBUG_MSG(p);
                        if( current_di = (Data_Item *)malloc(sizeof(Data_Item)))
                        {
                           current_di->tag = SINGLE_QUOTED_TEXT_STRING_DI;
			   /* build a new string without the bounding quotes */
                           if( tmp_string = (char *)malloc((strlen(yytext) -2 +1) * sizeof(char)) ) {
                             tmp_string[0] = '\0';
                             tmp_string = strncat( tmp_string, yytext + 1, strlen(yytext +1) -1);
                           } else
                             ERROR_MSG("star_scanner: Out of memory.");
			   DEBUG_MSG("star_scanner: SINGLE_QUOTED_TEXT_STRING =");
			   DEBUG_MSG( tmp_string );
			   current_di->value = tmp_string;
                           tmp_string = NULL;
                        } else
                            ERROR_MSG("star_scanner: Out of memory.");
			last_star_token = yytext;
                        return( SINGLE_QUOTED_TEXT_STRING );
                        }
	YY_BREAK
case 14:
# line 273 "star.l"
{
			/* get the longest "....."blank in the current line */

			char *p;

			p = yytext;
			/* step over first quote */
			p++;
			/* scan to '?
			 * (? == null) or (? == space) => end of string, stop
			 */
			DEBUG_MSG("searching for \" in");
			DEBUG_MSG(p);
			while ( p = strchr( p, '\"'))
			   if (isspace( *(++p))) {
			      /* (? == space) => push back rest of the input,
			       *                 S_Q_T_S */
                              /* this is to avoid side effects in the macro */
                              int	i = yyleng - strlen(p);
			      yyless( i ); 
                              p = &yytext[yyleng];
                           }
			   else /* keep searching */
			      DEBUG_MSG(p);
                        if( current_di = (Data_Item *)malloc(sizeof(Data_Item)))
                        {
                           current_di->tag = DOUBLE_QUOTED_TEXT_STRING_DI;
			   /* build a new string without the bounding quotes */
                           if( tmp_string = (char *)malloc((strlen(yytext) -2 +1) * sizeof(char)) ) {
                             tmp_string[0] = '\0';
                             tmp_string = strncat( tmp_string, yytext + 1, strlen(yytext +1) -1);
                           } else
                             ERROR_MSG("star_scanner: Out of memory.");
			   DEBUG_MSG("star_scanner: DOUBLE_QUOTED_TEXT_STRING_DI =");
			   DEBUG_MSG( tmp_string );
			   current_di->value = tmp_string;
                           tmp_string = NULL;
                        } else
                            ERROR_MSG("star_scanner: Out of memory.");
			last_star_token = yytext;
                        return( DOUBLE_QUOTED_TEXT_STRING );
                        }
	YY_BREAK
case 15:
# line 316 "star.l"
{
			DEBUG_MSG("FRAME_CODE");
			DEBUG_MSG(yytext);
                        /* save input */
                        if( current_di = (Data_Item *)malloc(sizeof(Data_Item)))
                        {
                           current_di->tag = FRAME_CODE_DI;
			   current_di->value = strdup( yytext );
                        } else
                            ERROR_MSG("star_scanner: Out of memory.");
                        /* return token */
			last_star_token = yytext;
                        return( FRAME_CODE );
			}
	YY_BREAK
case 16:
# line 331 "star.l"
{
			DEBUG_MSG("NON_QUOTED_TEXT_STRING");
			DEBUG_MSG(yytext);
                        /* save input */
                        if( current_di = (Data_Item *)malloc(sizeof(Data_Item)))
                        {
                           current_di->tag = NON_QUOTED_TEXT_STRING_DI;
			   current_di->value = strdup( yytext );
                        } else
                            ERROR_MSG("star_scanner: Out of memory.");
                        /* return token */
			last_star_token = yytext;
                        return( NON_QUOTED_TEXT_STRING );
			}
	YY_BREAK
case 17:
# line 346 "star.l"
{
			DEBUG_MSG("Unexpected Character");
			DEBUG_MSG(yytext);
			}
	YY_BREAK
case 18:
# line 350 "star.l"
ECHO;
	YY_BREAK
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(Alltext):
	yyterminate();

	case YY_END_OF_BUFFER:
		{
		/* Amount of text matched not including the EOB char. */
		int yy_amount_of_matched_text = yy_cp - yytext_ptr - 1;

		/* Undo the effects of YY_DO_BEFORE_ACTION. */
		*yy_cp = yy_hold_char;

		/* 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
				{
				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:
#ifdef FLEX_DEBUG
		printf( "action # %d\n", yy_act );
#endif
		YY_FATAL_ERROR(
			"fatal flex scanner internal error--no action found" );
	} /* end of action switch */
		} /* end of scanning one token */
	} /* end of yylex */


/* yy_get_next_buffer - try to read in a new buffer
 *
 * Returns a code representing an action:
 *	EOB_ACT_LAST_MATCH -
 *	EOB_ACT_CONTINUE_SCAN - continue scanning from current position
 *	EOB_ACT_END_OF_FILE - end of file
 */

static int yy_get_next_buffer()
	{
	register char *dest = yy_current_buffer->yy_ch_buf;
	register char *source = yytext_ptr - 1; /* copy prev. char, too */
	register int number_to_move, i;
	int ret_val;

	if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
		YY_FATAL_ERROR(
		"fatal flex scanner internal error--end of buffer missed" );

	/* Try to read more data. */

	/* First move last chars to start of buffer. */
	number_to_move = yy_c_buf_p - yytext_ptr;

	for ( i = 0; i < number_to_move; ++i )
		*(dest++) = *(source++);

	if ( yy_current_buffer->yy_eof_status != EOF_NOT_SEEN )
		/* don't do the read, it's not guaranteed to return an EOF,
		 * just force an EOF
		 */
		yy_n_chars = 0;

	else
		{
		int num_to_read =
			yy_current_buffer->yy_buf_size - number_to_move - 1;

		while ( num_to_read <= 0 )
			{ /* Not enough room in the buffer - grow it. */
#ifdef YY_USES_REJECT
			YY_FATAL_ERROR(
"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
#else

			/* just a shorter name for the current buffer */
			YY_BUFFER_STATE b = yy_current_buffer;

			int yy_c_buf_p_offset = yy_c_buf_p - b->yy_ch_buf;

			b->yy_buf_size *= 2;
			b->yy_ch_buf = (char *)
				yy_flex_realloc( (void *) b->yy_ch_buf,
						 b->yy_buf_size );

			if ( ! b->yy_ch_buf )
				YY_FATAL_ERROR(
				"fatal error - scanner input buffer overflow" );

			yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];

			num_to_read = yy_current_buffer->yy_buf_size -
						number_to_move - 1;
#endif
			}

		if ( num_to_read > YY_READ_BUF_SIZE )
			num_to_read = YY_READ_BUF_SIZE;

		/* Read in more data. */
		YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
			yy_n_chars, num_to_read );
		}

	if ( yy_n_chars == 0 )
		{
		if ( number_to_move - YY_MORE_ADJ == 1 )
			{
			ret_val = EOB_ACT_END_OF_FILE;
			yyrestart( yyin );
			}

		else
			{
			ret_val = EOB_ACT_LAST_MATCH;
			yy_current_buffer->yy_eof_status = EOF_PENDING;
			}
		}

	else
		ret_val = EOB_ACT_CONTINUE_SCAN;

	yy_n_chars += number_to_move;
	yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
	yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;

	/* yytext begins at the second character in yy_ch_buf; the first
	 * character is the one which preceded it before reading in the latest
	 * buffer; it needs to be kept around in case it's a newline, so
	 * yy_get_previous_state() will have with '^' rules active.
	 */

	yytext_ptr = &yy_current_buffer->yy_ch_buf[1];

	return ret_val;
	}


/* yy_get_previous_state - get the state just before the EOB char was reached */

static yy_state_type yy_get_previous_state()
	{
	register yy_state_type yy_current_state;
	register char *yy_cp;

	register char *yy_bp = yytext_ptr;

	yy_current_state = yy_start;
	if ( yy_bp[-1] == '\n' )
		++yy_current_state;

	for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
		{
		register YY_CHAR yy_c = (*yy_cp ? yy_ec[(unsigned int) *yy_cp] : 1);
		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 >= 199 )
				yy_c = yy_meta[(unsigned int) yy_c];
			}
		yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
		}

	return yy_current_state;
	}


/* yy_try_NUL_trans - try to make a transition on the NUL character
 *
 * synopsis
 *	next_state = yy_try_NUL_trans( current_state );
 */

#ifdef YY_USE_PROTOS
static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
#else
static yy_state_type yy_try_NUL_trans( yy_current_state )
yy_state_type yy_current_state;
#endif
	{
	register int yy_is_jam;
	register char *yy_cp = yy_c_buf_p;

	register YY_CHAR yy_c = 1;
	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 >= 199 )
			yy_c = yy_meta[(unsigned int) yy_c];
		}
	yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
	yy_is_jam = (yy_current_state == 198);

	return yy_is_jam ? 0 : yy_current_state;
	}


#ifdef YY_USE_PROTOS
static void yyunput( int c, register char *yy_bp )
#else
static void yyunput( c, yy_bp )
int c;
register char *yy_bp;
#endif
	{
	register char *yy_cp = yy_c_buf_p;

	/* undo effects of setting up yytext */
	*yy_cp = yy_hold_char;

	if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
		{ /* need to shift things up to make room */
		/* +2 for EOB chars. */
		register int number_to_move = yy_n_chars + 2;
		register char *dest = &yy_current_buffer->yy_ch_buf[
					yy_current_buffer->yy_buf_size + 2];
		register char *source =
				&yy_current_buffer->yy_ch_buf[number_to_move];

		while ( source > yy_current_buffer->yy_ch_buf )
			*--dest = *--source;

		yy_cp += dest - source;
		yy_bp += dest - source;
		yy_n_chars = yy_current_buffer->yy_buf_size;

		if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
			YY_FATAL_ERROR( "flex scanner push-back overflow" );
		}

	if ( yy_cp > yy_bp && yy_cp[-1] == '\n' )
		yy_cp[-2] = '\n';

	*--yy_cp = (char) c;


	/* Note: the formal parameter *must* be called "yy_bp" for this
	 * macro to now work correctly.
	 */
	YY_DO_BEFORE_ACTION; /* set up yytext again */
	}


#ifdef __cplusplus
static int yyinput()
#else
static int input()
#endif
	{
	int c;

	*yy_c_buf_p = yy_hold_char;

	if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
		{
		/* yy_c_buf_p now points to the character we want to return.
		 * If this occurs *before* the EOB characters, then it's a
		 * valid NUL; if not, then we've hit the end of the buffer.
		 */
		if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
			/* This was really a NUL. */
			*yy_c_buf_p = '\0';

		else
			{ /* need more input */
			yytext_ptr = yy_c_buf_p;
			++yy_c_buf_p;

			switch ( yy_get_next_buffer() )
				{
				case EOB_ACT_END_OF_FILE:
					{
					if ( yywrap() )
						{
						yy_c_buf_p =
						yytext_ptr + YY_MORE_ADJ;
						return EOF;
						}

					YY_NEW_FILE;
#ifdef __cplusplus
					return yyinput();
#else
					return input();
#endif
					}

				case EOB_ACT_CONTINUE_SCAN:
					yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
					break;

				case EOB_ACT_LAST_MATCH:
#ifdef __cplusplus
					YY_FATAL_ERROR(
					"unexpected last match in yyinput()" );
#else
					YY_FATAL_ERROR(
					"unexpected last match in input()" );
#endif
				}
			}
		}

	c = *yy_c_buf_p;
	*yy_c_buf_p = '\0';	/* preserve yytext */
	yy_hold_char = *++yy_c_buf_p;

	return c;
	}


#ifdef YY_USE_PROTOS
void yyrestart( FILE *input_file )
#else
void yyrestart( input_file )
FILE *input_file;
#endif
	{
	if ( ! yy_current_buffer )
		yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );

	yy_init_buffer( yy_current_buffer, input_file );
	yy_load_buffer_state();
	}


#ifdef YY_USE_PROTOS
void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
#else
void yy_switch_to_buffer( new_buffer )
YY_BUFFER_STATE new_buffer;
#endif
	{
	if ( yy_current_buffer == new_buffer )
		return;

	if ( yy_current_buffer )
		{
		/* Flush out information for old buffer. */
		*yy_c_buf_p = yy_hold_char;
		yy_current_buffer->yy_buf_pos = yy_c_buf_p;
		yy_current_buffer->yy_n_chars = yy_n_chars;
		}

	yy_current_buffer = new_buffer;
	yy_load_buffer_state();

	/* We don't actually know whether we did this switch during
	 * EOF (yywrap()) processing, but the only time this flag
	 * is looked at is after yywrap() is called, so it's safe
	 * to go ahead and always set it.
	 */
	yy_did_buffer_switch_on_eof = 1;
	}


#ifdef YY_USE_PROTOS
void yy_load_buffer_state( void )
#else
void yy_load_buffer_state()
#endif
	{
	yy_n_chars = yy_current_buffer->yy_n_chars;
	yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
	yyin = yy_current_buffer->yy_input_file;
	yy_hold_char = *yy_c_buf_p;
	}


#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
#else
YY_BUFFER_STATE yy_create_buffer( file, size )
FILE *file;
int size;
#endif
	{
	YY_BUFFER_STATE b;

	b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );

	if ( ! b )
		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

	b->yy_buf_size = size;

	/* yy_ch_buf has to be 2 characters longer than the size given because
	 * we need to put in 2 end-of-buffer characters.
	 */
	b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );

	if ( ! b->yy_ch_buf )
		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

	yy_init_buffer( b, file );

	return b;
	}


#ifdef YY_USE_PROTOS
void yy_delete_buffer( YY_BUFFER_STATE b )
#else
void yy_delete_buffer( b )
YY_BUFFER_STATE b;
#endif
	{
	if ( b == yy_current_buffer )
		yy_current_buffer = (YY_BUFFER_STATE) 0;

	yy_flex_free( (void *) b->yy_ch_buf );
	yy_flex_free( (void *) b );
	}


#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
#else
void yy_init_buffer( b, file )
YY_BUFFER_STATE b;
FILE *file;
#endif
	{
	b->yy_input_file = file;

	/* We put in the '\n' and start reading from [1] so that an
	 * initial match-at-newline will be true.
	 */

	b->yy_ch_buf[0] = '\n';
	b->yy_n_chars = 1;

	/* We always need two end-of-buffer characters.  The first causes
	 * a transition to the end-of-buffer state.  The second causes
	 * a jam in that state.
	 */
	b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
	b->yy_ch_buf[2] = YY_END_OF_BUFFER_CHAR;

	b->yy_buf_pos = &b->yy_ch_buf[1];

	b->is_interactive = file ? isatty( fileno(file) ) : 0;

	b->yy_eof_status = EOF_NOT_SEEN;
	}


#ifdef YY_USE_PROTOS
static void yy_fatal_error( const char msg[] )
#else
static void yy_fatal_error( msg )
char msg[];
#endif
	{
	(void) putc( '\n', stderr );
	exit( 1 );
	}


/* Redefine yyless() so it works in section 3 code. */

#undef yyless
#define yyless(n) \
	do \
		{ \
		/* Undo effects of setting up yytext. */ \
		yytext[yyleng] = yy_hold_char; \
		yy_c_buf_p = yytext + n - YY_MORE_ADJ; \
		yy_hold_char = *yy_c_buf_p; \
		*yy_c_buf_p = '\0'; \
		yyleng = n; \
		} \
	while ( 0 )
# line 350 "star.l"

/* redefine yywrap */
extern int	ARGc;
extern char	**ARGv;
int
yywrap( void )
{

   DEBUG_MSG("yywrap - looking for more input.");
   if( ARGc ) {
      /* attempt to open the next file */
      if( yyin = fopen(*ARGv, "r") ) {
         /* input file opened successfully */
         INFORM_MSG("Input from:");
         INFORM_MSG(*ARGv);
         /* move pointers along */
         ARGc--; ARGv++;
         /* reset the line count */
         star_line_count = 1;
         /* return the flag to proceed */
         return(0);
         }
      else {
         /* error in opening the file */
         ERROR_MSG("Cannot open file for input:");
         ERROR_MSG(*ARGv);
         return(-1);
      }
   } else {
      /* no arguments left */
      INFORM_MSG("End of input.");
      return( 1 );
   }
} /* yywrap */

char * 	tmp_string = NULL;




