/* A lexical scanner generated by flex */

/* Scanner skeleton version:
 * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $
 */

#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5

#include <stdio.h>
#include <errno.h>

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


#ifdef __cplusplus

#include <stdlib.h>
#ifndef _WIN32
#include <unistd.h>
#endif

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

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

#else	/* ! __cplusplus */

#if __STDC__

#define YY_USE_PROTOS
#define YY_USE_CONST

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

#ifdef __TURBOC__
 #pragma warn -rch
 #pragma warn -use
#include <io.h>
#include <stdlib.h>
#define YY_USE_CONST
#define YY_USE_PROTOS
#endif

#ifdef YY_USE_CONST
#define yyconst const
#else
#define yyconst
#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

/* Promotes a possibly negative, possibly signed char to an unsigned
 * integer for use as an array index.  If the signed char is negative,
 * we want to instead treat it as an 8-bit unsigned char, hence the
 * double cast.
 */
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)

/* 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.  The YYSTATE alias is for lex
 * compatibility.
 */
#define YY_START ((yy_start - 1) / 2)
#define YYSTATE YY_START

/* 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". */
#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;

#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_RESTORE_YY_MORE_OFFSET \
		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 )

/* The following is because we cannot portably get our hands on size_t
 * (without autoconf's help, which isn't available because we want
 * flex-generated scanners to compile on their own).
 */
typedef unsigned int yy_size_t;


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.
	 */
	yy_size_t yy_buf_size;

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

	/* Whether we "own" the buffer - i.e., we know we created it,
	 * and can realloc() it to grow it, and should free() it to
	 * delete it.
	 */
	int yy_is_our_buffer;

	/* 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 yy_is_interactive;

	/* Whether we're considered to be at the beginning of a line.
	 * If so, '^' rules will be active on the next match, otherwise
	 * not.
	 */
	int yy_at_bol;

	/* Whether to try to fill the input buffer when we reach the
	 * end of it.
	 */
	int yy_fill_buffer;

	int yy_buffer_status;
#define YY_BUFFER_NEW 0
#define YY_BUFFER_NORMAL 1
	/* When an EOF's been seen but there's still some text to process
	 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
	 * shouldn't try reading from the input source any more.  We might
	 * still have a bunch of tokens to match, though, because of
	 * possible backing-up.
	 *
	 * When we actually see the EOF, we change the status to "new"
	 * (via yyrestart()), so that the user can continue scanning by
	 * just pointing yyin at a new input file.
	 */
#define YY_BUFFER_EOF_PENDING 2
	};

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;

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 ));
void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )

YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));

static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
static void yy_flex_free YY_PROTO(( void * ));

#define yy_new_buffer yy_create_buffer

#define yy_set_interactive(is_interactive) \
	{ \
	if ( ! yy_current_buffer ) \
		yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
	yy_current_buffer->yy_is_interactive = is_interactive; \
	}

#define yy_set_bol(at_bol) \
	{ \
	if ( ! yy_current_buffer ) \
		yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
	yy_current_buffer->yy_at_bol = at_bol; \
	}

#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)

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

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(( yyconst 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 = (int) (yy_cp - yy_bp); \
	yy_hold_char = *yy_cp; \
	*yy_cp = '\0'; \
	yy_c_buf_p = yy_cp;

#define YY_NUM_RULES 20
#define YY_END_OF_BUFFER 21
static yyconst short int yy_accept[284] =
    {   0,
        0,    0,    0,    0,   21,   18,   19,   18,   18,   18,
       18,   18,   18,   18,   18,   18,   18,   18,   18,   18,
       18,   18,   18,   18,   18,   18,   18,   18,    5,    6,
        5,    5,    5,    0,   17,    0,   16,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,   10,    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,

        2,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        2,    2,    0,    0,    0,    0,    0,    0,    0,    7,
       11,    2,   12,   12,    0,    0,    0,   13,    0,    0,
        9,   11,   11,    2,    2,   12,   12,    0,   12,   12,
        0,    0,   13,   13,    0,   11,   12,   12,    0,    0,
        0,    0,   13,    8,    0,   11,   11,    2,    2,   12,
       12,    0,   12,   12,   13,   13,    0,    0,   14,    0,
       15,    3,   11,   11,    2,   12,   12,    0,   12,   12,
       13,   13,    4,   14,   15,   11,    2,   12,    0,   12,
       13,    3,    3,    0,    0,    0,    3,    3,    0,    1,

        0,    0,    0,    1,    0,    0,    0,    1,    0,    0,
        1,    3,    0,    1,    0,    1,    0,    1,    0,    1,
        0,    1,    0,    1,    0,    1,    0,    1,    0,    1,
        0,    1,    0,    1,    0,    1,    0,    1,    0,    1,
        0,    1,    0,    1,    0,    1,    0,    1,    0,    1,
        0,    1,    0,    1,    0,    1,    0,    1,    0,    1,
        0,    1,    0,    1,    0,    1,    0,    1,    0,    1,
        0,    1,    0,    1,    0,    1,    0,    1,    0,    1,
        1,    1,    0
    } ;

static yyconst int 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,    1,    5,    1,    1,    6,    1,
        1,    1,    1,    7,    5,    8,    1,    9,    9,    9,
        9,    9,    9,    9,    9,    9,    9,   10,   11,    1,
        1,    1,    4,    4,   12,   13,   14,   15,   16,   17,
       17,   18,   19,   20,   17,   21,   22,   23,   24,   25,
       26,   27,   28,   29,   30,   31,   32,   33,   17,   34,
        1,    1,    1,    1,   35,    1,   12,   13,   14,   15,

       16,   17,   17,   18,   19,   20,   17,   21,   22,   23,
       24,   25,   26,   27,   28,   29,   30,   31,   32,   33,
       17,   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,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,

        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    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 yyconst int yy_meta[36] =
    {   0,
        1,    2,    3,    4,    5,    1,    1,    6,    7,    8,
        1,    9,    9,    9,    9,    9,   10,    9,   10,   10,
        9,    9,   10,   10,   10,   10,   10,   10,   10,   10,
       10,   10,   10,   10,   11
    } ;

static yyconst short int yy_base[386] =
    {   0,
        0,   33,  748,   68,  749, 1063, 1063,  738,  734,    2,
       92,  714,   58,   61,  699,  696,    0,    0,    5,   85,
      125,   80,   86,   85,   83,  103,  109,  128, 1063, 1063,
        7,  719,    3,  710,  703,  704, 1063,  683,  674,  691,
       88,  127,  673,    2,  116,  669,  660,  655,  655,  123,
      110,  121,  147,  143,  150,  152,  154,  158,  164,  170,
      175,  174,  171,  177,  190,  189,  193,  195,  202,  663,
        8,  204,  658,  168,  651,  630,  644,  637,  635,  630,
      623,  621,  616,  585,  597,  207,  197,  209,  211,  212,
      213,  214,  225,  228,  229,  231,  234,  592,  215,  595,

        0,  593,  588,  238,  581,  579,  546,  555,  565,  241,
      536,  543,  243,  240,  245,  269,  246,  253,  539,  546,
        0,    0,    0,    0,   84,  516,  126,    0,  537,  507,
      525,  495,  507,  487,  502,  486,  495,  262,  476,  489,
      247,  274,  473,  485,  466,    0,    0,    0,  272,  490,
      276,  488,    0,  486,  460,  449,  460,  467,  437,  433,
      447,  278,  429,  442,  425,  440,  429,  450,    0,  449,
        0, 1063,  445,  419,  420,  440,  411,  250,  435,  408,
      431,  402, 1063,    0,    0,  400,    0,  399,  287,  397,
      395,    0,    0,  407,  282,  284,    0,    0,  406,    0,

      285,  147,  404,    0,  293,  290,  402,    0,  292,  398,
        0,  395,  394,    0,  393,    0,  389,    0,  388,    0,
      386,    0,  384,    0,  377,    0,  376,    0,  375,    0,
      371,    0,  370,    0,  368,    0,  366,    0,  345,    0,
      306,    0,  305,    0,  304,    0,  303,    0,  302,    0,
      299,    0,  298,    0,  297,    0,  296,    0,  294,    0,
      291,    0,  250,    0,  212,    0,  174,    0,  159,    0,
      116,    0,  113,    0,   81,    0,   24,    0,    0,    0,
        0, 1063, 1063,  317,  328,  339,  350,  361,  371,  380,
      389,  398,  407,  416,  421,  430,  439,  448,  456,  461,

      466,  471,  476,  485,  494,  499,  504,  513,  519,  526,
      533,  540,  547,  554,  561,  568,  575,  582,  589,  596,
      603,  610,  617,  624,  631,  638,  645,  652,  659,  666,
      673,  680,  687,  694,  701,  708,  715,  722,  729,  736,
      743,  750,  757,  764,  771,  778,  785,  792,  799,  806,
      813,  820,  827,  834,  841,  848,  855,  862,  869,  876,
      883,  890,  897,  904,  911,  918,  925,  932,  939,  946,
      953,  960,  967,  974,  981,  988,  995, 1002, 1009, 1016,
     1023, 1030, 1037, 1044, 1051
    } ;

static yyconst short int yy_def[386] =
    {   0,
      284,  283,  285,  286,  283,  283,  283,  287,  288,  283,
      283,  283,  283,  283,  283,  283,  283,  289,  290,  290,
      290,  290,  290,   21,  290,  290,  290,  290,  283,  283,
      291,  292,  292,  287,  287,  288,  283,  283,  283,  283,
      283,  283,  283,  283,  283,  283,  283,  283,  283,  289,
      290,  290,  283,  290,  283,  290,  290,  290,  290,  290,
      290,  290,  290,  290,  290,  290,  290,  290,  291,  292,
      292,  283,  292,  292,  283,  283,  293,  283,  283,  283,
      283,  283,  283,  283,  283,  283,  283,  290,  290,  293,
      290,  290,  290,  290,  290,  290,  290,  283,  292,  294,

      295,  296,  297,  283,  298,  299,  283,  283,  283,  294,
      295,  295,  296,  290,  297,  283,  298,  299,  283,  292,
      300,  295,  301,  302,  283,  283,  283,  303,  283,  283,
      283,  300,  300,  295,  295,  301,  301,  290,  302,  302,
      283,  283,  303,  303,  283,  300,  301,  302,  283,  304,
      283,  305,  303,  283,  283,  300,  300,  295,  295,  301,
      301,  290,  302,  302,  303,  303,  283,  304,  306,  305,
      307,  283,  300,  300,  295,  301,  301,  290,  302,  302,
      303,  303,  283,  306,  307,  300,  295,  301,  308,  302,
      303,  300,  301,  309,  309,  309,  302,  303,  310,  311,

      310,  310,  312,  313,  312,  312,  314,  315,  314,  316,
      317,  316,  318,  319,  320,  321,  322,  323,  324,  325,
      326,  327,  328,  329,  330,  331,  332,  333,  334,  335,
      336,  337,  338,  339,  340,  341,  342,  343,  344,  345,
      346,  347,  348,  349,  350,  351,  352,  353,  354,  355,
      356,  357,  358,  359,  360,  361,  362,  363,  364,  365,
      366,  367,  368,  369,  370,  371,  372,  373,  374,  375,
      376,  377,  378,  379,  380,  381,  382,  383,  283,  384,
      385,  283,    0,  283,  283,  283,  283,  283,  283,  283,
      283,  283,  283,  283,  283,  283,  283,  283,  283,  283,

      283,  283,  283,  283,  283,  283,  283,  283,  283,  283,
      283,  283,  283,  283,  283,  283,  283,  283,  283,  283,
      283,  283,  283,  283,  283,  283,  283,  283,  283,  283,
      283,  283,  283,  283,  283,  283,  283,  283,  283,  283,
      283,  283,  283,  283,  283,  283,  283,  283,  283,  283,
      283,  283,  283,  283,  283,  283,  283,  283,  283,  283,
      283,  283,  283,  283,  283,  283,  283,  283,  283,  283,
      283,  283,  283,  283,  283,  283,  283,  283,  283,  283,
      283,  283,  283,  283,  283
    } ;

static yyconst short int yy_nxt[1099] =
    {   0,
      283,   50,    7,   77,   72,    8,   53,  200,   69,   72,
        9,   10,   38,   11,   55,   38,   38,   12,   52,   13,
       14,   15,   71,   16,   38,   74,   40,   17,   49,   38,
       74,  200,   16,    6,   18,    7,   19,    6,    8,    6,
       19,    6,    6,    9,   20,   19,   21,   19,   19,   19,
       22,   23,   24,   25,   26,   19,   27,   19,   19,   19,
       28,   19,   19,   19,   19,   27,   19,    6,   29,   31,
       30,   40,   29,   29,   29,   46,   29,   29,   29,   44,
       41,   53,   45,   33,   53,  149,   53,   53,  200,   55,
      150,   40,   55,   47,   55,   55,   54,   65,   56,   56,

       61,   40,   29,   39,   53,   40,   63,   56,   62,   64,
       53,   53,   55,   40,   41,   66,   42,   77,   55,   55,
      200,   40,   53,  200,   50,   40,   53,  151,   77,   53,
       55,   78,  152,   67,   55,   56,   57,   55,   58,   78,
       56,   52,   78,   62,   53,   75,   58,   59,   53,   60,
       78,   86,   55,   53,  200,   53,   68,   56,   58,   90,
      206,   55,   84,   55,   87,   53,  200,   55,   85,   72,
       88,   90,   90,   55,   89,   53,   53,   58,   90,   55,
       55,  200,   99,   55,   55,   91,   55,   93,   88,   92,
       53,   53,   91,   91,   53,   58,   53,   58,   55,   55,

       91,   94,   55,   69,   55,   72,   97,   95,   86,  109,
      110,   96,   53,   90,   90,  113,   72,   71,   55,  200,
       55,   87,   55,   55,  109,   98,   53,  111,  109,  115,
      116,   58,  117,  112,   55,  118,  120,   55,   55,  104,
       55,   53,  110,   55,  113,  114,  115,  117,  151,   55,
      125,  189,  125,  152,  118,  125,  132,  200,  136,   55,
      139,  141,  133,   53,  137,  126,  140,  142,  143,  138,
      116,   55,  107,  149,  144,  151,  162,  151,  150,   53,
      152,  125,  152,  125,   84,  108,  125,   55,  189,  200,
       85,  200,  200,  178,  154,  202,  126,  200,  200,  200,

      200,  200,  195,  200,  200,  200,  200,  201,  196,  200,
      200,  200,  200,  200,  205,  212,  209,    6,    6,    6,
        6,    6,    6,    6,    6,    6,    6,    6,   29,   29,
       29,   29,   29,   29,   29,   29,   29,   29,   29,   32,
       32,   32,   32,   32,   32,   32,   32,   32,   32,   32,
       34,   34,  200,   34,   34,   34,   34,   34,   34,   34,
       34,   36,   36,   36,   36,   36,   36,   36,   36,   36,
       36,   36,   51,  200,   51,  200,   51,  200,  200,   51,
       51,   54,  200,  200,  200,   54,   54,   54,   54,   54,
       70,  200,   70,  200,   70,  200,  200,   70,   70,   73,

      200,  200,  200,   73,   73,  200,   73,   73,  101,  200,
      101,  200,  101,  200,  200,  101,  101,  121,  198,  121,
      197,  121,  193,  192,  121,  121,  122,  122,  191,  122,
      122,  123,  154,  123,  190,  123,  154,  188,  123,  123,
      124,  154,  124,  187,  124,  186,  154,  124,  124,  127,
      170,  168,  183,  182,  181,  180,  127,  128,  179,  128,
      177,  128,  176,  175,  128,  128,  146,  146,  154,  146,
      146,  147,  147,  174,  147,  147,  148,  148,  173,  148,
      148,  153,  153,  172,  153,  153,  169,  154,  169,  170,
      169,  168,  167,  169,  169,  171,  166,  171,  165,  171,

      164,  163,  171,  171,  184,  184,  161,  184,  184,  185,
      185,  160,  185,  185,  194,  159,  158,  194,  157,  194,
      156,  194,  194,  199,  199,  199,  131,  199,  199,  199,
      203,  203,  203,  155,  203,  203,  203,  204,  154,  204,
      125,  204,  204,  204,  207,  207,  207,   72,  207,  207,
      207,  208,  145,  208,  135,  208,  208,  208,  210,  210,
      210,  134,  210,  210,  210,  211,  131,  211,  130,  211,
      211,  211,  213,  213,  213,  129,  213,  213,  213,  214,
      106,  214,  105,  214,  214,  214,  215,  215,  215,  103,
      215,  215,  215,  216,  102,  216,  100,  216,  216,  216,

      217,  217,  217,  119,  217,  217,  217,  218,  108,  218,
      107,  218,  218,  218,  219,  219,  219,  106,  219,  219,
      219,  220,  105,  220,  104,  220,  220,  220,  221,  221,
      221,  103,  221,  221,  221,  222,  102,  222,   77,  222,
      222,  222,  223,  223,  223,   77,  223,  223,  223,  224,
       40,  224,  100,  224,  224,  224,  225,  225,  225,   72,
      225,  225,  225,  226,   72,  226,   83,  226,  226,  226,
      227,  227,  227,   82,  227,  227,  227,  228,   81,  228,
       80,  228,  228,  228,  229,  229,  229,   79,  229,  229,
      229,  230,   77,  230,   76,  230,  230,  230,  231,  231,

      231,   75,  231,  231,  231,  232,   37,  232,   35,  232,
      232,  232,  233,  233,  233,   35,  233,  233,  233,  234,
       72,  234,   38,  234,  234,  234,  235,  235,  235,   48,
      235,  235,  235,  236,   43,  236,   37,  236,  236,  236,
      237,  237,  237,   35,  237,  237,  237,  238,  283,  238,
       30,  238,  238,  238,  239,  239,  239,  283,  239,  239,
      239,  240,  283,  240,  283,  240,  240,  240,  241,  241,
      241,  283,  241,  241,  241,  242,  283,  242,  283,  242,
      242,  242,  243,  243,  243,  283,  243,  243,  243,  244,
      283,  244,  283,  244,  244,  244,  245,  245,  245,  283,

      245,  245,  245,  246,  283,  246,  283,  246,  246,  246,
      247,  247,  247,  283,  247,  247,  247,  248,  283,  248,
      283,  248,  248,  248,  249,  249,  249,  283,  249,  249,
      249,  250,  283,  250,  283,  250,  250,  250,  251,  251,
      251,  283,  251,  251,  251,  252,  283,  252,  283,  252,
      252,  252,  253,  253,  253,  283,  253,  253,  253,  254,
      283,  254,  283,  254,  254,  254,  255,  255,  255,  283,
      255,  255,  255,  256,  283,  256,  283,  256,  256,  256,
      257,  257,  257,  283,  257,  257,  257,  258,  283,  258,
      283,  258,  258,  258,  259,  259,  259,  283,  259,  259,

      259,  260,  283,  260,  283,  260,  260,  260,  261,  261,
      261,  283,  261,  261,  261,  262,  283,  262,  283,  262,
      262,  262,  263,  263,  263,  283,  263,  263,  263,  264,
      283,  264,  283,  264,  264,  264,  265,  265,  265,  283,
      265,  265,  265,  266,  283,  266,  283,  266,  266,  266,
      267,  267,  267,  283,  267,  267,  267,  268,  283,  268,
      283,  268,  268,  268,  269,  269,  269,  283,  269,  269,
      269,  270,  283,  270,  283,  270,  270,  270,  271,  271,
      271,  283,  271,  271,  271,  272,  283,  272,  283,  272,
      272,  272,  273,  273,  273,  283,  273,  273,  273,  274,

      283,  274,  283,  274,  274,  274,  275,  275,  275,  283,
      275,  275,  275,  276,  283,  276,  283,  276,  276,  276,
      277,  277,  277,  283,  277,  277,  277,  278,  283,  278,
      283,  278,  278,  278,  279,  279,  279,  283,  279,  279,
      279,  280,  283,  280,  283,  280,  280,  280,  281,  283,
      281,  283,  281,  281,  281,  282,  283,  282,  283,  282,
      282,  282,    5,  283,  283,  283,  283,  283,  283,  283,
      283,  283,  283,  283,  283,  283,  283,  283,  283,  283,
      283,  283,  283,  283,  283,  283,  283,  283,  283,  283,
      283,  283,  283,  283,  283,  283,  283,  283

    } ;

static yyconst short int yy_chk[1099] =
    {   0,
        0,   18,    1,   44,   33,    1,   19,  279,   31,   71,
        1,    1,   17,    1,   19,   10,   10,    1,   18,    1,
        1,    1,   31,    1,   10,   33,   44,    1,   17,   17,
       71,  277,    1,    2,    2,    2,    2,    2,    2,    2,
        2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
        2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
        2,    2,    2,    2,    2,    2,    2,    2,    4,    4,
        4,   13,    4,    4,    4,   14,    4,    4,    4,   13,
       13,   22,   13,    4,   25,  125,   20,   23,  275,   22,
      125,   13,   25,   14,   20,   23,   24,   25,   20,   20,

       22,   41,    4,   11,   26,   11,   24,   20,   23,   24,
       27,   51,   26,   11,   11,   25,   11,   45,   27,   51,
      273,   41,   52,  271,   50,   11,   21,  127,   42,   28,
       52,   45,  127,   26,   21,   27,   21,   28,   21,   45,
       28,   50,   42,   52,   54,   42,   21,   21,   53,   21,
       42,   55,   54,   56,  202,   57,   28,   28,   21,   58,
      202,   56,   53,   57,   55,   59,  269,   58,   53,   74,
       56,   60,   63,   59,   57,   62,   61,   59,   64,   60,
       63,  267,   74,   62,   61,   60,   64,   62,   60,   61,
       66,   65,   64,   60,   67,   63,   68,   59,   66,   65,

       64,   65,   67,   69,   68,   72,   68,   66,   86,   87,
       88,   67,   89,   90,   91,   92,   99,   69,   88,  265,
       89,   86,   91,   92,   87,   72,   93,   90,   87,   94,
       95,   89,   96,   90,   93,   97,   99,   94,   95,  104,
       96,  114,  110,   97,  113,   93,  115,  117,  141,  114,
      104,  178,  104,  141,  118,  104,  110,  263,  113,  178,
      115,  117,  110,  138,  113,  104,  115,  117,  118,  114,
      116,  138,  141,  149,  118,  142,  138,  151,  149,  162,
      142,  116,  151,  116,  116,  142,  116,  162,  189,  195,
      116,  196,  201,  162,  205,  196,  116,  206,  261,  209,

      205,  259,  189,  257,  255,  253,  251,  195,  189,  249,
      247,  245,  243,  241,  201,  209,  206,  284,  284,  284,
      284,  284,  284,  284,  284,  284,  284,  284,  285,  285,
      285,  285,  285,  285,  285,  285,  285,  285,  285,  286,
      286,  286,  286,  286,  286,  286,  286,  286,  286,  286,
      287,  287,  239,  287,  287,  287,  287,  287,  287,  287,
      287,  288,  288,  288,  288,  288,  288,  288,  288,  288,
      288,  288,  289,  237,  289,  235,  289,  233,  231,  289,
      289,  290,  229,  227,  225,  290,  290,  290,  290,  290,
      291,  223,  291,  221,  291,  219,  217,  291,  291,  292,

      215,  213,  212,  292,  292,  210,  292,  292,  293,  207,
      293,  203,  293,  199,  194,  293,  293,  294,  191,  294,
      190,  294,  188,  186,  294,  294,  295,  295,  182,  295,
      295,  296,  181,  296,  180,  296,  179,  177,  296,  296,
      297,  176,  297,  175,  297,  174,  173,  297,  297,  298,
      170,  168,  167,  166,  165,  164,  298,  299,  163,  299,
      161,  299,  160,  159,  299,  299,  300,  300,  158,  300,
      300,  301,  301,  157,  301,  301,  302,  302,  156,  302,
      302,  303,  303,  155,  303,  303,  304,  154,  304,  152,
      304,  150,  145,  304,  304,  305,  144,  305,  143,  305,

      140,  139,  305,  305,  306,  306,  137,  306,  306,  307,
      307,  136,  307,  307,  308,  135,  134,  308,  133,  308,
      132,  308,  308,  309,  309,  309,  131,  309,  309,  309,
      310,  310,  310,  130,  310,  310,  310,  311,  129,  311,
      126,  311,  311,  311,  312,  312,  312,  120,  312,  312,
      312,  313,  119,  313,  112,  313,  313,  313,  314,  314,
      314,  111,  314,  314,  314,  315,  109,  315,  108,  315,
      315,  315,  316,  316,  316,  107,  316,  316,  316,  317,
      106,  317,  105,  317,  317,  317,  318,  318,  318,  103,
      318,  318,  318,  319,  102,  319,  100,  319,  319,  319,

      320,  320,  320,   98,  320,  320,  320,  321,   85,  321,
       84,  321,  321,  321,  322,  322,  322,   83,  322,  322,
      322,  323,   82,  323,   81,  323,  323,  323,  324,  324,
      324,   80,  324,  324,  324,  325,   79,  325,   78,  325,
      325,  325,  326,  326,  326,   77,  326,  326,  326,  327,
       76,  327,   75,  327,  327,  327,  328,  328,  328,   73,
      328,  328,  328,  329,   70,  329,   49,  329,  329,  329,
      330,  330,  330,   48,  330,  330,  330,  331,   47,  331,
       46,  331,  331,  331,  332,  332,  332,   43,  332,  332,
      332,  333,   40,  333,   39,  333,  333,  333,  334,  334,

      334,   38,  334,  334,  334,  335,   36,  335,   35,  335,
      335,  335,  336,  336,  336,   34,  336,  336,  336,  337,
       32,  337,   16,  337,  337,  337,  338,  338,  338,   15,
      338,  338,  338,  339,   12,  339,    9,  339,  339,  339,
      340,  340,  340,    8,  340,  340,  340,  341,    5,  341,
        3,  341,  341,  341,  342,  342,  342,    0,  342,  342,
      342,  343,    0,  343,    0,  343,  343,  343,  344,  344,
      344,    0,  344,  344,  344,  345,    0,  345,    0,  345,
      345,  345,  346,  346,  346,    0,  346,  346,  346,  347,
        0,  347,    0,  347,  347,  347,  348,  348,  348,    0,

      348,  348,  348,  349,    0,  349,    0,  349,  349,  349,
      350,  350,  350,    0,  350,  350,  350,  351,    0,  351,
        0,  351,  351,  351,  352,  352,  352,    0,  352,  352,
      352,  353,    0,  353,    0,  353,  353,  353,  354,  354,
      354,    0,  354,  354,  354,  355,    0,  355,    0,  355,
      355,  355,  356,  356,  356,    0,  356,  356,  356,  357,
        0,  357,    0,  357,  357,  357,  358,  358,  358,    0,
      358,  358,  358,  359,    0,  359,    0,  359,  359,  359,
      360,  360,  360,    0,  360,  360,  360,  361,    0,  361,
        0,  361,  361,  361,  362,  362,  362,    0,  362,  362,

      362,  363,    0,  363,    0,  363,  363,  363,  364,  364,
      364,    0,  364,  364,  364,  365,    0,  365,    0,  365,
      365,  365,  366,  366,  366,    0,  366,  366,  366,  367,
        0,  367,    0,  367,  367,  367,  368,  368,  368,    0,
      368,  368,  368,  369,    0,  369,    0,  369,  369,  369,
      370,  370,  370,    0,  370,  370,  370,  371,    0,  371,
        0,  371,  371,  371,  372,  372,  372,    0,  372,  372,
      372,  373,    0,  373,    0,  373,  373,  373,  374,  374,
      374,    0,  374,  374,  374,  375,    0,  375,    0,  375,
      375,  375,  376,  376,  376,    0,  376,  376,  376,  377,

        0,  377,    0,  377,  377,  377,  378,  378,  378,    0,
      378,  378,  378,  379,    0,  379,    0,  379,  379,  379,
      380,  380,  380,    0,  380,  380,  380,  381,    0,  381,
        0,  381,  381,  381,  382,  382,  382,    0,  382,  382,
      382,  383,    0,  383,    0,  383,  383,  383,  384,    0,
      384,    0,  384,  384,  384,  385,    0,  385,    0,  385,
      385,  385,  283,  283,  283,  283,  283,  283,  283,  283,
      283,  283,  283,  283,  283,  283,  283,  283,  283,  283,
      283,  283,  283,  283,  283,  283,  283,  283,  283,  283,
      283,  283,  283,  283,  283,  283,  283,  283

    } ;

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
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "ibrowser.l"
#define INITIAL 0
/*

Copyright (c) 2001, Enchanted Systems Limited

This file is part of Source-Navigator.

Source-Navigator is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2, or (at your option)
any later version.

Source-Navigator is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License along
with Source-Navigator; see the file COPYING.  If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA.



*/
/*
 * ibrowser.l
 *
 * Copyright (C) 2001-2007, Enchanted Systems Limited
 *
 * Description:
 * Lex input file for the Source-Navigator Intel8085 assembly parser.
 *
 * The target system is a cross-compiler running on VaxVms.  The compiler is
 * case-insensitive (hence setLower() calls and the tortured regExps of key
 * words etc).
 */
#line 40 "ibrowser.l"

#include <ctype.h>
#include <stdio.h>
#include "snptools.h"
#include "lexinput.h"

#undef yywrap
#define YY_SKIP_YYWRAP

#undef YY_INPUT
#define YY_INPUT(buf,r,ms) (r = sn_encoded_input(buf, ms))

static char *p;				/* general purpose pointer */
static char *savep;			/* general purpose pointer */
static char group[] = "8085";

static struct {
    char name[512];
    long line;
    long column;
    int length;
    unsigned char flag;
} last_label = { "", 0, 0, 0, 0 };

static struct {
    char name[512];
    long line;
    long column;
    int length;
    unsigned char flag;
} last_macro = { "", 0, 0, 0, 0 };

void
emit_func_defn()
{
    if ( last_label.flag > 0 )
    {
	sn_insert_symbol( SN_FUNC_DEF	/* symbol type			*/
		, NULL			/* classname			*/
		, last_label.name	/* identifier			*/
		, sn_current_file()	/* file name			*/
		, last_label.line	/* start line number		*/
		, last_label.column	/* start column number		*/
		, sn_line()		/* end line number		*/
		, 0			/* end column number		*/
		, 0			/* attributes			*/
		, NULL			/* return type			*/
		, NULL			/* argument types		*/
		, NULL			/* argument names		*/
		, NULL			/* comment			*/
		, last_label.line	/* highlighting start line	*/
		, last_label.column	/* highlighting start column	*/
		, last_label.line	/* highlighting end line	*/
		, last_label.column + last_label.length
					/* highlighting end column	*/
		);
	last_label.flag = 0;
    }
}

/*
 * Flush any function definitions that might be outstanding (ie. if its
 * label appears _last_ in a file.  When we reach EOF, check to see if its
 * defn needs to be flushed to the database.  Normally the occurence of
 * another label causes the defn to be stored.
 * 
 * Return 1 so flex will keep playing.
 *
 */
int
yywrap()
{
    emit_func_defn();
    return( 1 );
}

void
setLower				/* set character string to lower case		*/
    ( char * p				/* pointer to start of NULL-terminated string	*/
    )
{
    while ( *p )
    {
	if ( isupper( *p ) ) *p = tolower( *p );
	p++;
    }
}

#define MACRO 1


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

#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap YY_PROTO(( void ));
#else
extern int yywrap YY_PROTO(( void ));
#endif
#endif

#ifndef YY_NO_UNPUT
static void yyunput YY_PROTO(( int c, char *buf_ptr ));
#endif

#ifndef yytext_ptr
static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
#endif

#ifdef YY_NEED_STRLEN
static int yy_flex_strlen YY_PROTO(( yyconst char * ));
#endif

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

#if YY_STACK_USED
static int yy_start_stack_ptr = 0;
static int yy_start_stack_depth = 0;
static int *yy_start_stack = 0;
#ifndef YY_NO_PUSH_STATE
static void yy_push_state YY_PROTO(( int new_state ));
#endif
#ifndef YY_NO_POP_STATE
static void yy_pop_state YY_PROTO(( void ));
#endif
#ifndef YY_NO_TOP_STATE
static int yy_top_state YY_PROTO(( void ));
#endif

#else
#define YY_NO_PUSH_STATE 1
#define YY_NO_POP_STATE 1
#define YY_NO_TOP_STATE 1
#endif

#ifdef YY_MALLOC_DECL
YY_MALLOC_DECL
#else
#if __STDC__
#ifndef __cplusplus
#include <stdlib.h>
#endif
#else
/* Just try to get by without declaring the routines.  This will fail
 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
 * or sizeof(void*) != sizeof(int).
 */
#endif
#endif

/* 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->yy_is_interactive ) \
		{ \
		int c = '*', n; \
		for ( n = 0; n < max_size && \
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
			buf[n] = (char) c; \
		if ( c == '\n' ) \
			buf[n++] = (char) c; \
		if ( c == EOF && ferror( yyin ) ) \
			YY_FATAL_ERROR( "input in flex scanner failed" ); \
		result = n; \
		} \
	else \
		{ \
		errno=0; \
		while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
			{ \
			if( errno != EINTR) \
				{ \
				YY_FATAL_ERROR( "input in flex scanner failed" ); \
				break; \
				} \
			errno=0; \
			clearerr(yyin); \
			} \
		}
#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

/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#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 beginning of each rule, after yytext and yyleng
 * have been set up.
 */
#ifndef YY_USER_ACTION
#define YY_USER_ACTION
#endif

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

#define YY_RULE_SETUP \
	if ( yyleng > 0 ) \
		yy_current_buffer->yy_at_bol = \
				(yytext[yyleng - 1] == '\n'); \
	YY_USER_ACTION

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

#line 148 "ibrowser.l"



	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 >= 284 )
					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] != 1063 );

yy_find_action:
		yy_act = yy_accept[yy_current_state];
		if ( yy_act == 0 )
			{ /* have to back up */
			yy_cp = yy_last_accepting_cpos;
			yy_current_state = yy_last_accepting_state;
			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 150 "ibrowser.l"
{

    /* walk over the indentation (if any) */
    for ( p = yytext; isspace( *p ); sn_advance_column( 1 ), p++ );

    /* walk over the include directive */
    for ( ; !isspace( *p ); sn_advance_column( 1 ), p++ );

    /* walk over the white space between directive and filename */
    for ( ; isspace( *p ); sn_advance_column( 1 ), p++ );

    setLower( p );
    sn_insert_symbol( SN_INCLUDE_DEF	/* symbol type			*/
  		, NULL			/* class name			*/
		, p			/* identifier			*/
		, sn_current_file()	/* file name			*/
		, sn_line()		/* start line number		*/
		, sn_column()		/* start column number		*/
		, sn_line()		/* end line number		*/
		, sn_column() + strlen(p)
				  	/* end column number		*/
		, 0			/* attributes			*/
		, NULL			/* return types			*/
		, NULL			/* argument types		*/
		, NULL			/* argument names		*/
		, NULL			/* comment			*/
		, sn_line()		/* highlighting start line	*/
		, sn_column()		/* highlighting start column	*/
		, sn_line()		/* highlighting end line	*/
		, sn_column() + strlen(p)
				  	/* highlighting end column	*/
		);

    sn_advance_column( yytext + yyleng - p );
}
	YY_BREAK
case 2:
YY_RULE_SETUP
#line 186 "ibrowser.l"
{

    /* walk over the jump instruction mnemonic */
    for ( p = yytext; !isspace( *p ); p++ );

    /* walk over the whitespace between the opcode and the operand */
    for ( ; isspace( *p ); p++ );

    setLower( p );
    /* local labels are either '[0-9]+$' or '\?\?[0-9]+' which are
     * not valid {symbolname}s so we only get here if the target
     * of the (call|jmp) is a global symbol
     */
    sn_insert_xref( SN_REF_TO_FUNCTION	/* referenced symbol type	*/
		, SN_FUNC_DEF		/* scope type			*/
		, SN_REF_SCOPE_GLOBAL	/* scope level			*/
		, NULL			/* class name			*/
		, last_label.name	/* calling function name	*/
		, NULL			/* argument types		*/
		, NULL			/* namespace of symbol		*/
		, p			/* referenced symbol		*/
		, NULL			/* referenced argument types	*/
		, sn_current_file()	/* file name			*/
		, sn_line()		/* line number			*/
		, SN_REF_PASS		/* access type			*/
		);
    sn_advance_column( yyleng );
}
	YY_BREAK
case 3:
YY_RULE_SETUP
#line 215 "ibrowser.l"
{

    /* walk over the indentation (if any) */
    for ( p = yytext; isspace( *p ); sn_advance_column( 1 ), p++ );

    /* remember where macro name starts */
    savep = p;
    last_macro.column = sn_column();

    /* walk over the macro name */
    for ( ; !isspace( *p ); sn_advance_column( 1 ), p++ );
    *p = 0;				/* NULL-terminate macro name	*/

    setLower( savep );
    strcpy( last_macro.name, savep );
    last_macro.line = sn_line();
    last_macro.length = strlen( savep );
    last_macro.flag = 1;

    sn_advance_column( yytext + yyleng - p );
    BEGIN( MACRO );
}
	YY_BREAK
case 4:
YY_RULE_SETUP
#line 238 "ibrowser.l"
{
    last_macro.flag++;			/* handle nested macros */
    sn_advance_column( yyleng );
}
	YY_BREAK
case 5:
YY_RULE_SETUP
#line 243 "ibrowser.l"
{		/* throw away any macro definition */
      sn_advance_column( yyleng );
}
	YY_BREAK
case 6:
YY_RULE_SETUP
#line 247 "ibrowser.l"
{		/* throw away any macro definition */
      sn_advance_line();
      sn_reset_column();
}
	YY_BREAK
case 7:
YY_RULE_SETUP
#line 252 "ibrowser.l"
{

    sn_advance_column( yyleng );
    last_macro.flag--;
    if ( last_macro.flag == 0 )
    {
	sn_insert_symbol( SN_MACRO_DEF	/* symbol type			*/
		, NULL			/* class name			*/
		, last_macro.name	/* identifier			*/
		, sn_current_file()	/* file name			*/
		, last_macro.line	/* start line number		*/
		, last_macro.column	/* start column number		*/
		, sn_line()		/* end line number		*/
		, sn_column()		/* end column number		*/
		, 0			/* attributes			*/
		, NULL			/* return types			*/
		, NULL			/* argument types		*/
		, NULL			/* argument names		*/
		, NULL			/* comment			*/
		, last_macro.line	/* highlighting start line	*/
		, last_macro.column	/* highlighting start column	*/
		, last_macro.line	/* highlighting end line	*/
		, last_macro.column + last_macro.length
					/* highlighting end column	*/
		);

	BEGIN( INITIAL );
    }
}
	YY_BREAK
case 8:
YY_RULE_SETUP
#line 282 "ibrowser.l"
{

    /* walk over the indentation (if any) */
    for ( p = yytext; isspace( *p ); sn_advance_column( 1 ), p++ );

    /* remember where equality name starts */
    savep = p;

    /* walk over the equality name */
    for ( ; !isspace( *p ); sn_advance_column( 1 ), p++ );
    *p = 0;				/* NULL-terminate equality name	*/

    setLower( savep );
    sn_insert_symbol( SN_CONS_DEF	/* symbol type			*/
	    , NULL			/* class name			*/
	    , savep			/* identifier			*/
	    , sn_current_file()		/* file name			*/
	    , sn_line()			/* start line number		*/
	    , sn_column() - strlen( savep )
					/* start column number		*/
	    , sn_line()			/* end line number		*/
	    , sn_column()		/* end column number		*/
	    , 0				/* attributes			*/
	    , NULL			/* return types			*/
	    , NULL			/* argument types		*/
	    , NULL			/* argument names		*/
	    , NULL			/* comment			*/
	    , sn_line()			/* highlighting start line	*/
	    , sn_column() - strlen( savep )
					/* highlighting start column	*/
	    , sn_line()			/* highlighting end line	*/
	    , sn_column()		/* highlighting end column	*/
	    );

    sn_advance_column( yytext + yyleng - p );
}
	YY_BREAK
case 9:
YY_RULE_SETUP
#line 319 "ibrowser.l"
{

    /* walk over the indentation (if any) */
    for ( p = yytext; isspace( *p ); sn_advance_column( 1 ), p++ );

    /* remember where symbol name starts */
    savep = p;

    /* walk over the symbol name */
    for ( ; *p != ':'; sn_advance_column( 1 ), p++ );
    *p = 0;				/* NULL-terminate symbol name	*/

    setLower( savep );
    sn_insert_symbol( SN_GLOB_VAR_DEF	/* symbol type			*/
	    , NULL			/* class name			*/
	    , savep			/* identifier			*/
	    , sn_current_file()		/* file name			*/
	    , sn_line()			/* start line number		*/
	    , sn_column() - strlen( savep )
					/* start column number		*/
	    , sn_line()			/* end line number		*/
	    , sn_column()		/* end column number		*/
	    , 0				/* attributes			*/
	    , NULL			/* return types			*/
	    , NULL			/* argument types		*/
	    , NULL			/* argument names		*/
	    , NULL			/* comment			*/
	    , sn_line()			/* highlighting start line	*/
	    , sn_column() - strlen( savep )
					/* highlighting start column	*/
	    , sn_line()			/* highlighting end line	*/
	    , sn_column()		/* highlighting end column	*/
	    );

    sn_advance_column( yytext + yyleng - p );
}
	YY_BREAK
case 10:
YY_RULE_SETUP
#line 356 "ibrowser.l"
{

    /* walk over the indentation (if any) */
    for ( p = yytext; isspace( *p ); sn_advance_column( 1 ), p++ );

    /* remember where symbol name starts */
    savep = p;

    /* walk over the symbol name */
    for ( ; *p != ':'; sn_advance_column( 1 ), p++ );
    *p = 0;				/* NULL-terminate symbol name	*/

    emit_func_defn();

    setLower( savep );
    strcpy( last_label.name, savep );
    last_label.line = sn_line();
    last_label.column = sn_column() - strlen( savep );
    last_label.length = strlen( savep );
    last_label.flag = 1;

    sn_advance_column( yytext + yyleng - p );
}
	YY_BREAK
case 11:
YY_RULE_SETUP
#line 380 "ibrowser.l"
{

    /* walk over instruction mnemonic */
    for ( p = yytext; !isspace( *p ); p++ );

    /* walk over the whitespace between the opcode and the operand */
    for ( ; isspace( *p ); p++ );

    setLower( p );
    sn_insert_xref( SN_REF_TO_CONSTANT	/* referenced symbol type	*/
	    , SN_FUNC_DEF		/* scope type			*/
	    , SN_REF_SCOPE_GLOBAL	/* scope level			*/
	    , NULL			/* class name			*/
	    , last_label.name		/* calling function name	*/
	    , NULL			/* argument types		*/
	    , NULL			/* namespace of symbol		*/
	    , p				/* referenced symbol		*/
	    , NULL			/* referenced argument types	*/
	    , sn_current_file()		/* file name			*/
	    , sn_line()			/* line number			*/
	    , SN_REF_READ		/* access type			*/
	    );
    sn_advance_column( yyleng );
}
	YY_BREAK
case 12:
YY_RULE_SETUP
#line 405 "ibrowser.l"
{

    /* walk over instruction mnemonic */
    for ( p = yytext; !isspace( *p ); p++ );

    /* walk over the whitespace between the opcode and the operand */
    for ( ; isspace( *p ); p++ );

    setLower( p );
    sn_insert_xref( SN_REF_TO_GLOB_VAR	/* referenced symbol type	*/
	    , SN_FUNC_DEF		/* scope type			*/
	    , SN_REF_SCOPE_GLOBAL	/* scope level			*/
	    , NULL			/* class name			*/
	    , last_label.name		/* calling function name	*/
	    , NULL			/* argument types		*/
	    , NULL			/* namespace of symbol		*/
	    , p				/* referenced symbol		*/
	    , NULL			/* referenced argument types	*/
	    , sn_current_file()		/* file name			*/
	    , sn_line()			/* line number			*/
	    , SN_REF_READ		/* access type			*/
	    );
    sn_advance_column( yyleng );
}
	YY_BREAK
case 13:
YY_RULE_SETUP
#line 430 "ibrowser.l"
{

    /* walk over instruction mnemonic */
    for ( p = yytext; !isspace( *p ); p++ );

    /* walk over the whitespace between the opcode and the operand */
    for ( ; isspace( *p ); p++ );

    setLower( p );
    sn_insert_xref( SN_REF_TO_GLOB_VAR	/* referenced symbol type	*/
	    , SN_FUNC_DEF		/* scope type			*/
	    , SN_REF_SCOPE_GLOBAL	/* scope level			*/
	    , NULL			/* class name			*/
	    , last_label.name		/* calling function name	*/
	    , NULL			/* argument types		*/
	    , NULL			/* namespace of symbol		*/
	    , p				/* referenced symbol		*/
	    , NULL			/* referenced argument types	*/
	    , sn_current_file()		/* file name			*/
	    , sn_line()			/* line number			*/
	    , SN_REF_WRITE		/* access type			*/
	    );
    sn_advance_column( yyleng );
}
	YY_BREAK
case 14:
YY_RULE_SETUP
#line 455 "ibrowser.l"
{

    /* walk over instruction mnemonic and register definition */
    for ( p = yytext; *p != ','; p++ );

    /* walk over the whitespace between the comma and the second operand */
    for ( ; isspace( *p ); p++ );

    setLower( p );
    sn_insert_xref( SN_REF_TO_CONSTANT	/* referenced symbol type	*/
	    , SN_FUNC_DEF		/* scope type			*/
	    , SN_REF_SCOPE_GLOBAL	/* scope level			*/
	    , NULL			/* class name			*/
	    , last_label.name		/* calling function name	*/
	    , NULL			/* argument types		*/
	    , NULL			/* namespace of symbol		*/
	    , p				/* referenced symbol		*/
	    , NULL			/* referenced argument types	*/
	    , sn_current_file()		/* file name			*/
	    , sn_line()			/* line number			*/
	    , SN_REF_READ		/* access type			*/
	    );
    sn_advance_column( yyleng );
}
	YY_BREAK
case 15:
YY_RULE_SETUP
#line 480 "ibrowser.l"
{

    /* walk over instruction mnemonic and register definition */
    for ( p = yytext; *p != ','; p++ );

    /* walk over the whitespace between the comma and the second operand */
    for ( ; isspace( *p ); p++ );

    setLower( p );
    sn_insert_xref( SN_REF_TO_CONSTANT	/* referenced symbol type	*/
	    , SN_FUNC_DEF		/* scope type			*/
	    , SN_REF_SCOPE_GLOBAL	/* scope level			*/
	    , NULL			/* class name			*/
	    , last_label.name		/* calling function name	*/
	    , NULL			/* argument types		*/
	    , NULL			/* namespace of symbol		*/
	    , p				/* referenced symbol		*/
	    , NULL			/* referenced argument types	*/
	    , sn_current_file()		/* file name			*/
	    , sn_line()			/* line number			*/
	    , SN_REF_READ		/* access type			*/
	    );
    sn_advance_column( yyleng );
}
	YY_BREAK
case 16:
YY_RULE_SETUP
#line 505 "ibrowser.l"
{

    /* walk over any spaces after the leading ';' */
    for ( p = yytext, p++; isspace( *p ); p++ );

    sn_insert_comment( NULL		/* class name			*/
	    , last_label.name		/* function name		*/
	    , sn_current_file()		/* file name			*/
	    , p				/* comment			*/
	    , sn_line()			/* start line of comment	*/
	    , sn_column()		/* start column of comment	*/
	    );

    sn_advance_line();
    sn_reset_column();
}
	YY_BREAK
case 17:
YY_RULE_SETUP
#line 522 "ibrowser.l"
{
      sn_advance_column( yyleng );	/* eat string literals */
}
	YY_BREAK
case 18:
YY_RULE_SETUP
#line 526 "ibrowser.l"
{
      sn_advance_column( yyleng );	/* eat intel8085 code text */
}
	YY_BREAK
case 19:
YY_RULE_SETUP
#line 530 "ibrowser.l"
{
      sn_advance_line();
      sn_reset_column();
}
	YY_BREAK
case 20:
YY_RULE_SETUP
#line 535 "ibrowser.l"
ECHO;
	YY_BREAK
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(MACRO):
	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_c_buf_p;
				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 */


/* 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;
	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" );

	if ( yy_current_buffer->yy_fill_buffer == 0 )
		{ /* Don't try to fill the buffer, so this is an EOF. */
		if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
			{
			/* We matched a single character, the EOB, so
			 * treat this as a final EOF.
			 */
			return EOB_ACT_END_OF_FILE;
			}

		else
			{
			/* We matched some text prior to the EOB, first
			 * process it.
			 */
			return EOB_ACT_LAST_MATCH;
			}
		}

	/* Try to read more data. */

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

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

	if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
		/* don't do the read, it's not guaranteed to return an EOF,
		 * just force an EOF
		 */
		yy_current_buffer->yy_n_chars = 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 =
				(int) (yy_c_buf_p - b->yy_ch_buf);

			if ( b->yy_is_our_buffer )
				{
				int new_size = b->yy_buf_size * 2;

				if ( new_size <= 0 )
					b->yy_buf_size += b->yy_buf_size / 8;
				else
					b->yy_buf_size *= 2;

				b->yy_ch_buf = (char *)
					/* Include room in for 2 EOB chars. */
					yy_flex_realloc( (void *) b->yy_ch_buf,
							 b->yy_buf_size + 2 );
				}
			else
				/* Can't grow it, we don't own it. */
				b->yy_ch_buf = 0;

			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 );

		yy_current_buffer->yy_n_chars = yy_n_chars;
		}

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

		else
			{
			ret_val = EOB_ACT_LAST_MATCH;
			yy_current_buffer->yy_buffer_status =
				YY_BUFFER_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_ptr = &yy_current_buffer->yy_ch_buf[0];

	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;

	yy_current_state = yy_start;
	yy_current_state += YY_AT_BOL();

	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[YY_SC_TO_UI(*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 >= 284 )
				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 >= 284 )
			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 == 283);

	return yy_is_jam ? 0 : yy_current_state;
	}


#ifndef YY_NO_UNPUT
#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 += (int) (dest - source);
		yy_bp += (int) (dest - source);
		yy_current_buffer->yy_n_chars =
			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" );
		}

	*--yy_cp = (char) c;


	yytext_ptr = yy_bp;
	yy_hold_char = *yy_cp;
	yy_c_buf_p = yy_cp;
	}
#endif	/* ifndef YY_NO_UNPUT */


#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 */
			int offset = yy_c_buf_p - yytext_ptr;
			++yy_c_buf_p;

			switch ( yy_get_next_buffer() )
				{
				case EOB_ACT_LAST_MATCH:
					/* This happens because yy_g_n_b()
					 * sees that we've accumulated a
					 * token and flags that we need to
					 * try matching the token before
					 * proceeding.  But for input(),
					 * there's no matching to consider.
					 * So convert the EOB_ACT_LAST_MATCH
					 * to EOB_ACT_END_OF_FILE.
					 */

					/* Reset buffer status. */
					yyrestart( yyin );

					/* fall through */

				case EOB_ACT_END_OF_FILE:
					{
					if ( yywrap() )
						return EOF;

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

				case EOB_ACT_CONTINUE_SCAN:
					yy_c_buf_p = yytext_ptr + offset;
					break;
				}
			}
		}

	c = *(unsigned char *) yy_c_buf_p;	/* cast for 8-bit char's */
	*yy_c_buf_p = '\0';	/* preserve yytext */
	yy_hold_char = *++yy_c_buf_p;

	yy_current_buffer->yy_at_bol = (c == '\n');

	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()" );

	b->yy_is_our_buffer = 1;

	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 )
		return;

	if ( b == yy_current_buffer )
		yy_current_buffer = (YY_BUFFER_STATE) 0;

	if ( b->yy_is_our_buffer )
		yy_flex_free( (void *) b->yy_ch_buf );

	yy_flex_free( (void *) b );
	}


#ifndef _WIN32
#include <unistd.h>
#else
#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
extern int isatty YY_PROTO(( int ));
#endif
#endif
#endif

#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


	{
	yy_flush_buffer( b );

	b->yy_input_file = file;
	b->yy_fill_buffer = 1;

#if YY_ALWAYS_INTERACTIVE
	b->yy_is_interactive = 1;
#else
#if YY_NEVER_INTERACTIVE
	b->yy_is_interactive = 0;
#else
	b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
#endif
#endif
	}


#ifdef YY_USE_PROTOS
void yy_flush_buffer( YY_BUFFER_STATE b )
#else
void yy_flush_buffer( b )
YY_BUFFER_STATE b;
#endif

	{
	if ( ! b )
		return;

	b->yy_n_chars = 0;

	/* 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[0] = YY_END_OF_BUFFER_CHAR;
	b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;

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

	b->yy_at_bol = 1;
	b->yy_buffer_status = YY_BUFFER_NEW;

	if ( b == yy_current_buffer )
		yy_load_buffer_state();
	}


#ifndef YY_NO_SCAN_BUFFER
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
#else
YY_BUFFER_STATE yy_scan_buffer( base, size )
char *base;
yy_size_t size;
#endif
	{
	YY_BUFFER_STATE b;

	if ( size < 2 ||
	     base[size-2] != YY_END_OF_BUFFER_CHAR ||
	     base[size-1] != YY_END_OF_BUFFER_CHAR )
		/* They forgot to leave room for the EOB's. */
		return 0;

	b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
	if ( ! b )
		YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );

	b->yy_buf_size = size - 2;	/* "- 2" to take care of EOB's */
	b->yy_buf_pos = b->yy_ch_buf = base;
	b->yy_is_our_buffer = 0;
	b->yy_input_file = 0;
	b->yy_n_chars = b->yy_buf_size;
	b->yy_is_interactive = 0;
	b->yy_at_bol = 1;
	b->yy_fill_buffer = 0;
	b->yy_buffer_status = YY_BUFFER_NEW;

	yy_switch_to_buffer( b );

	return b;
	}
#endif


#ifndef YY_NO_SCAN_STRING
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
#else
YY_BUFFER_STATE yy_scan_string( yy_str )
yyconst char *yy_str;
#endif
	{
	int len;
	for ( len = 0; yy_str[len]; ++len )
		;

	return yy_scan_bytes( yy_str, len );
	}
#endif


#ifndef YY_NO_SCAN_BYTES
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
#else
YY_BUFFER_STATE yy_scan_bytes( bytes, len )
yyconst char *bytes;
int len;
#endif
	{
	YY_BUFFER_STATE b;
	char *buf;
	yy_size_t n;
	int i;

	/* Get memory for full buffer, including space for trailing EOB's. */
	n = len + 2;
	buf = (char *) yy_flex_alloc( n );
	if ( ! buf )
		YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );

	for ( i = 0; i < len; ++i )
		buf[i] = bytes[i];

	buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;

	b = yy_scan_buffer( buf, n );
	if ( ! b )
		YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );

	/* It's okay to grow etc. this buffer, and we should throw it
	 * away when we're done.
	 */
	b->yy_is_our_buffer = 1;

	return b;
	}
#endif


#ifndef YY_NO_PUSH_STATE
#ifdef YY_USE_PROTOS
static void yy_push_state( int new_state )
#else
static void yy_push_state( new_state )
int new_state;
#endif
	{
	if ( yy_start_stack_ptr >= yy_start_stack_depth )
		{
		yy_size_t new_size;

		yy_start_stack_depth += YY_START_STACK_INCR;
		new_size = yy_start_stack_depth * sizeof( int );

		if ( ! yy_start_stack )
			yy_start_stack = (int *) yy_flex_alloc( new_size );

		else
			yy_start_stack = (int *) yy_flex_realloc(
					(void *) yy_start_stack, new_size );

		if ( ! yy_start_stack )
			YY_FATAL_ERROR(
			"out of memory expanding start-condition stack" );
		}

	yy_start_stack[yy_start_stack_ptr++] = YY_START;

	BEGIN(new_state);
	}
#endif


#ifndef YY_NO_POP_STATE
static void yy_pop_state()
	{
	if ( --yy_start_stack_ptr < 0 )
		YY_FATAL_ERROR( "start-condition stack underflow" );

	BEGIN(yy_start_stack[yy_start_stack_ptr]);
	}
#endif


#ifndef YY_NO_TOP_STATE
static int yy_top_state()
	{
	return yy_start_stack[yy_start_stack_ptr - 1];
	}
#endif

#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif

#ifdef YY_USE_PROTOS
static void yy_fatal_error( yyconst char msg[] )
#else
static void yy_fatal_error( msg )
char msg[];
#endif
	{
	(void) fprintf( stderr, "%s\n", msg );
	exit( YY_EXIT_FAILURE );
	}



/* 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_hold_char = *yy_c_buf_p; \
		*yy_c_buf_p = '\0'; \
		yyleng = n; \
		} \
	while ( 0 )


/* Internal utility routines. */

#ifndef yytext_ptr
#ifdef YY_USE_PROTOS
static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
#else
static void yy_flex_strncpy( s1, s2, n )
char *s1;
yyconst char *s2;
int n;
#endif
	{
	register int i;
	for ( i = 0; i < n; ++i )
		s1[i] = s2[i];
	}
#endif

#ifdef YY_NEED_STRLEN
#ifdef YY_USE_PROTOS
static int yy_flex_strlen( yyconst char *s )
#else
static int yy_flex_strlen( s )
yyconst char *s;
#endif
	{
	register int n;
	for ( n = 0; s[n]; ++n )
		;

	return n;
	}
#endif


#ifdef YY_USE_PROTOS
static void *yy_flex_alloc( yy_size_t size )
#else
static void *yy_flex_alloc( size )
yy_size_t size;
#endif
	{
	return (void *) malloc( size );
	}

#ifdef YY_USE_PROTOS
static void *yy_flex_realloc( void *ptr, yy_size_t size )
#else
static void *yy_flex_realloc( ptr, size )
void *ptr;
yy_size_t size;
#endif
	{
	/* The cast to (char *) in the following accommodates both
	 * implementations that use char* generic pointers, and those
	 * that use void* generic pointers.  It works with the latter
	 * because both ANSI C and C++ allow castless assignment from
	 * any pointer type to void*, and deal with argument conversions
	 * as though doing an assignment.
	 */
	return (void *) realloc( (char *) ptr, size );
	}

#ifdef YY_USE_PROTOS
static void yy_flex_free( void *ptr )
#else
static void yy_flex_free( ptr )
void *ptr;
#endif
	{
	free( ptr );
	}

#if YY_MAIN
int main()
	{
	yylex();
	return 0;
	}
#endif
#line 535 "ibrowser.l"

  
void
reset()
{
      sn_reset_line();
      sn_reset_column();
}

int
main
    ( int argc
    , char *argv[]
    )
{
      return sn_main( argc, argv, group, &yyin, yylex, reset );
}

