Logo Search packages:      
Sourcecode: heaplayers version File versions

lexer.c

/* A lexical scanner generated by flex */

/* Scanner skeleton version:
 * $Header: /nfs/loki/data3/emery/REPOSITORY/heaplayers/benchmarks/mudlle/lexer.c,v 1.1 2003/10/15 15:58:51 emery Exp $
 */

#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5

#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>
#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
#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 char YY_CHAR;
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
typedef yyconst struct yy_trans_info *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 40
#define YY_END_OF_BUFFER 41
struct yy_trans_info
      {
      short yy_verify;
      short yy_nxt;
      };
static yyconst struct yy_trans_info yy_transition[2001] =
    {
 {   0,   0 }, {   0,1873 }, {   0,   0 }, {   0,1871 }, {   1, 260 },
 {   2, 260 }, {   3, 260 }, {   4, 260 }, {   5, 260 }, {   6, 260 },
 {   7, 260 }, {   8, 260 }, {   9, 262 }, {  10, 264 }, {  11, 260 },
 {  12, 260 }, {  13, 262 }, {  14, 260 }, {  15, 260 }, {  16, 260 },
 {  17, 260 }, {  18, 260 }, {  19, 260 }, {  20, 260 }, {  21, 260 },
 {  22, 260 }, {  23, 260 }, {  24, 260 }, {  25, 260 }, {  26, 260 },
 {  27, 260 }, {  28, 260 }, {  29, 260 }, {  30, 260 }, {  31, 260 },
 {  32, 262 }, {  33, 266 }, {  34, 317 }, {  35, 260 }, {  36, 260 },
 {  37, 268 }, {  38, 270 }, {  39, 273 }, {  40, 277 }, {  41, 279 },
 {  42, 281 }, {  43, 283 }, {  44, 285 }, {  45, 447 }, {  46, 287 },

 {  47, 463 }, {  48, 465 }, {  49, 465 }, {  50, 465 }, {  51, 465 },
 {  52, 465 }, {  53, 465 }, {  54, 465 }, {  55, 465 }, {  56, 465 },
 {  57, 465 }, {  58, 475 }, {  59, 467 }, {  60, 507 }, {  61, 537 },
 {  62, 600 }, {  63, 664 }, {  64, 260 }, {  65, 475 }, {  66, 475 },
 {  67, 475 }, {  68, 475 }, {  69, 475 }, {  70, 475 }, {  71, 475 },
 {  72, 475 }, {  73, 475 }, {  74, 475 }, {  75, 475 }, {  76, 475 },
 {  77, 475 }, {  78, 475 }, {  79, 475 }, {  80, 475 }, {  81, 475 },
 {  82, 475 }, {  83, 475 }, {  84, 475 }, {  85, 475 }, {  86, 475 },
 {  87, 475 }, {  88, 475 }, {  89, 475 }, {  90, 475 }, {  91, 602 },
 {  92, 260 }, {  93, 604 }, {  94, 606 }, {  95, 475 }, {  96, 260 },

 {  97, 475 }, {  98, 475 }, {  99, 475 }, { 100, 475 }, { 101, 475 },
 { 102, 475 }, { 103, 475 }, { 104, 475 }, { 105, 475 }, { 106, 475 },
 { 107, 475 }, { 108, 475 }, { 109, 475 }, { 110, 475 }, { 111, 475 },
 { 112, 475 }, { 113, 475 }, { 114, 475 }, { 115, 475 }, { 116, 475 },
 { 117, 475 }, { 118, 475 }, { 119, 475 }, { 120, 475 }, { 121, 475 },
 { 122, 475 }, { 123, 260 }, { 124, 794 }, { 125, 260 }, { 126, 796 },
 { 127, 260 }, { 128, 260 }, {   0,   0 }, {   0,1741 }, {   1, 130 },
 {   2, 130 }, {   3, 130 }, {   4, 130 }, {   5, 130 }, {   6, 130 },
 {   7, 130 }, {   8, 130 }, {   9, 132 }, {  10, 134 }, {  11, 130 },
 {  12, 130 }, {  13, 132 }, {  14, 130 }, {  15, 130 }, {  16, 130 },

 {  17, 130 }, {  18, 130 }, {  19, 130 }, {  20, 130 }, {  21, 130 },
 {  22, 130 }, {  23, 130 }, {  24, 130 }, {  25, 130 }, {  26, 130 },
 {  27, 130 }, {  28, 130 }, {  29, 130 }, {  30, 130 }, {  31, 130 },
 {  32, 132 }, {  33, 136 }, {  34, 187 }, {  35, 130 }, {  36, 130 },
 {  37, 138 }, {  38, 140 }, {  39, 143 }, {  40, 147 }, {  41, 149 },
 {  42, 151 }, {  43, 153 }, {  44, 155 }, {  45, 317 }, {  46, 157 },
 {  47, 333 }, {  48, 335 }, {  49, 335 }, {  50, 335 }, {  51, 335 },
 {  52, 335 }, {  53, 335 }, {  54, 335 }, {  55, 335 }, {  56, 335 },
 {  57, 335 }, {  58, 345 }, {  59, 337 }, {  60, 377 }, {  61, 407 },
 {  62, 470 }, {  63, 534 }, {  64, 130 }, {  65, 345 }, {  66, 345 },

 {  67, 345 }, {  68, 345 }, {  69, 345 }, {  70, 345 }, {  71, 345 },
 {  72, 345 }, {  73, 345 }, {  74, 345 }, {  75, 345 }, {  76, 345 },
 {  77, 345 }, {  78, 345 }, {  79, 345 }, {  80, 345 }, {  81, 345 },
 {  82, 345 }, {  83, 345 }, {  84, 345 }, {  85, 345 }, {  86, 345 },
 {  87, 345 }, {  88, 345 }, {  89, 345 }, {  90, 345 }, {  91, 472 },
 {  92, 130 }, {  93, 474 }, {  94, 476 }, {  95, 345 }, {  96, 130 },
 {  97, 345 }, {  98, 345 }, {  99, 345 }, { 100, 345 }, { 101, 345 },
 { 102, 345 }, { 103, 345 }, { 104, 345 }, { 105, 345 }, { 106, 345 },
 { 107, 345 }, { 108, 345 }, { 109, 345 }, { 110, 345 }, { 111, 345 },
 { 112, 345 }, { 113, 345 }, { 114, 345 }, { 115, 345 }, { 116, 345 },

 { 117, 345 }, { 118, 345 }, { 119, 345 }, { 120, 345 }, { 121, 345 },
 { 122, 345 }, { 123, 130 }, { 124, 664 }, { 125, 130 }, { 126, 666 },
 { 127, 130 }, { 128, 130 }, {   0,  39 }, {   0,1611 }, {   0,   2 },
 {   0,1609 }, {   0,   1 }, {   0,1607 }, {   0,   7 }, {   0,1605 },
 {   0,  16 }, {   0,1603 }, {   0,  19 }, {   0,1601 }, {   9, 536 },
 {   0,  33 }, {   0,1598 }, {   0,   0 }, {  13, 536 }, {   0,  17 },
 {   0,1594 }, {   0,  18 }, {   0,1592 }, {   0,  14 }, {   0,1590 },
 {   0,  12 }, {   0,1588 }, {   0,  22 }, {   0,1586 }, {   0,  23 },
 {   0,1584 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {  32, 536 }, {   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 }, {  38, 534 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,  39 },
 {   0,1554 }, {   1, 591 }, {   2, 591 }, {   3, 591 }, {   4, 591 },
 {   5, 591 }, {   6, 591 }, {   7, 591 }, {   8, 591 }, {   9, 591 },
 {  61, 534 }, {  11, 591 }, {  12, 591 }, {  13, 591 }, {  14, 591 },
 {  15, 591 }, {  16, 591 }, {  17, 591 }, {  18, 591 }, {  19, 591 },
 {  20, 591 }, {  21, 591 }, {  22, 591 }, {  23, 591 }, {  24, 591 },
 {  25, 591 }, {  26, 591 }, {  27, 591 }, {  28, 591 }, {  29, 591 },

 {  30, 591 }, {  31, 591 }, {  32, 591 }, {  33, 591 }, {  34, 485 },
 {  35, 591 }, {  36, 591 }, {  37, 591 }, {  38, 591 }, {  39, 591 },
 {  40, 591 }, {  41, 591 }, {  42, 591 }, {  43, 591 }, {  44, 591 },
 {  45, 591 }, {  46, 591 }, {  47, 591 }, {  48, 591 }, {  49, 591 },
 {  50, 591 }, {  51, 591 }, {  52, 591 }, {  53, 591 }, {  54, 591 },
 {  55, 591 }, {  56, 591 }, {  57, 591 }, {  58, 591 }, {  59, 591 },
 {  60, 591 }, {  61, 591 }, {  62, 591 }, {  63, 591 }, {  64, 591 },
 {  65, 591 }, {  66, 591 }, {  67, 591 }, {  68, 591 }, {  69, 591 },
 {  70, 591 }, {  71, 591 }, {  72, 591 }, {  73, 591 }, {  74, 591 },
 {  75, 591 }, {  76, 591 }, {  77, 591 }, {  78, 591 }, {  79, 591 },

 {  80, 591 }, {  81, 591 }, {  82, 591 }, {  83, 591 }, {  84, 591 },
 {  85, 591 }, {  86, 591 }, {  87, 591 }, {  88, 591 }, {  89, 591 },
 {  90, 591 }, {  91, 591 }, {  92, 721 }, {  93, 591 }, {  94, 591 },
 {  95, 591 }, {  96, 591 }, {  97, 591 }, {  98, 591 }, {  99, 591 },
 { 100, 591 }, { 101, 591 }, { 102, 591 }, { 103, 591 }, { 104, 591 },
 { 105, 591 }, { 106, 591 }, { 107, 591 }, { 108, 591 }, { 109, 591 },
 { 110, 591 }, { 111, 591 }, { 112, 591 }, { 113, 591 }, { 114, 591 },
 { 115, 591 }, { 116, 591 }, { 117, 591 }, { 118, 591 }, { 119, 591 },
 { 120, 591 }, { 121, 591 }, { 122, 591 }, { 123, 591 }, { 124, 591 },
 { 125, 591 }, { 126, 591 }, { 127, 591 }, { 128, 591 }, {   0,  13 },

 {   0,1424 }, {   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,  15 }, {   0,1408 }, {   0,  36 }, {   0,1406 }, {   0,  11 },
 {   0,1404 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,  38 }, {   0,1396 }, {   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 }, {  48, 721 }, {  49, 721 },

 {  50, 721 }, {  51, 721 }, {  52, 721 }, {  53, 721 }, {  54, 721 },
 {  55, 721 }, {  56, 721 }, {  57, 721 }, {  42, 343 }, {   0,  27 },
 {   0,1364 }, {  33, 882 }, {   0,   0 }, {  47, 764 }, {  36, 882 },
 {   0,   0 }, {  48, 703 }, {  49, 703 }, {  50, 703 }, {  51, 703 },
 {  52, 703 }, {  53, 703 }, {  54, 703 }, {  55, 703 }, {  56, 703 },
 {  57, 703 }, {  48, 882 }, {  49, 882 }, {  50, 882 }, {  51, 882 },
 {  52, 882 }, {  53, 882 }, {  54, 882 }, {  55, 882 }, {  56, 882 },
 {  57, 882 }, {  58, 882 }, {   0,   0 }, {   0,   0 }, {   0,  24 },
 {   0,1334 }, {  63, 882 }, {   0,   0 }, {  65, 882 }, {  66, 882 },
 {  67, 882 }, {  68, 882 }, {  69, 882 }, {  70, 882 }, {  71, 882 },

 {  72, 882 }, {  73, 882 }, {  74, 882 }, {  75, 882 }, {  76, 882 },
 {  77, 882 }, {  78, 882 }, {  79, 882 }, {  80, 882 }, {  81, 882 },
 {  82, 882 }, {  83, 882 }, {  84, 882 }, {  85, 882 }, {  86, 882 },
 {  87, 882 }, {  88, 882 }, {  89, 882 }, {  90, 882 }, {   0,   0 },
 {  60, 302 }, {  61, 306 }, {   0,   0 }, {  95, 882 }, {   0,   0 },
 {  97, 882 }, {  98, 882 }, {  99, 882 }, { 100, 882 }, { 101, 882 },
 { 102, 882 }, { 103, 882 }, { 104, 882 }, { 105, 882 }, { 106, 882 },
 { 107, 882 }, { 108, 882 }, { 109, 882 }, { 110, 882 }, { 111, 882 },
 { 112, 882 }, { 113, 882 }, { 114, 882 }, { 115, 882 }, { 116, 882 },
 { 117, 882 }, { 118, 882 }, { 119, 882 }, { 120, 882 }, { 121, 882 },

 { 122, 882 }, {  61, 278 }, {   0,  29 }, {   0,1271 }, {   0,   8 },
 {   0,1269 }, {   0,   9 }, {   0,1267 }, {   0,  21 }, {   0,1265 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },

 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {  61, 217 },
 {  62, 219 }, {   0,  39 }, {   0,1207 }, {   1, 157 }, {   2, 157 },
 {   3, 157 }, {   4, 157 }, {   5, 157 }, {   6, 157 }, {   7, 157 },
 {   8, 157 }, {   9, 157 }, {   0,   0 }, {  11, 157 }, {  12, 157 },
 {  13, 157 }, {  14, 157 }, {  15, 157 }, {  16, 157 }, {  17, 157 },
 {  18, 157 }, {  19, 157 }, {  20, 157 }, {  21, 157 }, {  22, 157 },
 {  23, 157 }, {  24, 157 }, {  25, 157 }, {  26, 157 }, {  27, 157 },
 {  28, 157 }, {  29, 157 }, {  30, 157 }, {  31, 157 }, {  32, 157 },

 {  33, 157 }, {  34, 157 }, {  35, 157 }, {  36, 157 }, {  37, 157 },
 {  38, 157 }, {  39, 157 }, {  40, 157 }, {  41, 157 }, {  42, 157 },
 {  43, 157 }, {  44, 157 }, {  45, 157 }, {  46, 157 }, {  47, 157 },
 {  48, 157 }, {  49, 157 }, {  50, 157 }, {  51, 157 }, {  52, 157 },
 {  53, 157 }, {  54, 157 }, {  55, 157 }, {  56, 157 }, {  57, 157 },
 {  58, 157 }, {  59, 157 }, {  60, 157 }, {  61, 157 }, {  62, 157 },
 {  63, 157 }, {  64, 157 }, {  65, 157 }, {  66, 157 }, {  67, 157 },
 {  68, 157 }, {  69, 157 }, {  70, 157 }, {  71, 157 }, {  72, 157 },
 {  73, 157 }, {  74, 157 }, {  75, 157 }, {  76, 157 }, {  77, 157 },
 {  78, 157 }, {  79, 157 }, {  80, 157 }, {  81, 157 }, {  82, 157 },

 {  83, 157 }, {  84, 157 }, {  85, 157 }, {  86, 157 }, {  87, 157 },
 {  88, 157 }, {  89, 157 }, {  90, 157 }, {  91, 157 }, {  92, 817 },
 {  93, 157 }, {  94, 157 }, {  95, 157 }, {  96, 157 }, {  97, 157 },
 {  98, 157 }, {  99, 157 }, { 100, 157 }, { 101, 157 }, { 102, 157 },
 { 103, 157 }, { 104, 157 }, { 105, 157 }, { 106, 157 }, { 107, 157 },
 { 108, 157 }, { 109, 157 }, { 110, 157 }, { 111, 157 }, { 112, 157 },
 { 113, 157 }, { 114, 157 }, { 115, 157 }, { 116, 157 }, { 117, 157 },
 { 118, 157 }, { 119, 157 }, { 120, 157 }, { 121, 157 }, { 122, 157 },
 { 123, 157 }, { 124, 157 }, { 125, 157 }, { 126, 157 }, { 127, 157 },
 { 128, 157 }, {   0,  10 }, {   0,1077 }, {   0,  20 }, {   0,1075 },

 {   0,   2 }, {   0,1073 }, {   0,  26 }, {   0,1071 }, {   0,  37 },
 {   0,1069 }, {   0,   5 }, {   0,1067 }, {   0,   4 }, {   0,1065 },
 {   9,   0 }, {   0,  31 }, {   0,1062 }, {   0,   0 }, {  13,   0 },
 {   0,  28 }, {   0,1058 }, {   0,  25 }, {   0,1056 }, {   0,  30 },
 {   0,1054 }, {   0,  32 }, {   0,1052 }, {   0,  35 }, {   0,1050 },
 {   0,   6 }, {   0,1048 }, {   0,   3 }, {   0,1046 }, {   0,  34 },
 {   0,1044 }, {   0,   0 }, {   0,   0 }, {  32,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },

 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   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, 963 }, {   1,   0 }, {   2,   0 }, {   3,   0 },
 {   4,   0 }, {   5,   0 }, {   6,   0 }, {   7,   0 }, {   8,   0 },
 {   9,   0 }, { 124,  29 }, {  11,   0 }, {  12,   0 }, {  13,   0 },
 {  14,   0 }, {  15,   0 }, {  16,   0 }, {  17,   0 }, {  18,   0 },
 {  19,   0 }, {  20,   0 }, {  21,   0 }, {  22,   0 }, {  23,   0 },
 {  24,   0 }, {  25,   0 }, {  26,   0 }, {  27,   0 }, {  28,   0 },
 {  29,   0 }, {  30,   0 }, {  31,   0 }, {  32,   0 }, {  33,   0 },
 {  34,-106 }, {  35,   0 }, {  36,   0 }, {  37,   0 }, {  38,   0 },

 {  39,   0 }, {  40,   0 }, {  41,   0 }, {  42,   0 }, {  43,   0 },
 {  44,   0 }, {  45,   0 }, {  46,   0 }, {  47,   0 }, {  48,   0 },
 {  49,   0 }, {  50,   0 }, {  51,   0 }, {  52,   0 }, {  53,   0 },
 {  54,   0 }, {  55,   0 }, {  56,   0 }, {  57,   0 }, {  58,   0 },
 {  59,   0 }, {  60,   0 }, {  61,   0 }, {  62,   0 }, {  63,   0 },
 {  64,   0 }, {  65,   0 }, {  66,   0 }, {  67,   0 }, {  68,   0 },
 {  69,   0 }, {  70,   0 }, {  71,   0 }, {  72,   0 }, {  73,   0 },
 {  74,   0 }, {  75,   0 }, {  76,   0 }, {  77,   0 }, {  78,   0 },
 {  79,   0 }, {  80,   0 }, {  81,   0 }, {  82,   0 }, {  83,   0 },
 {  84,   0 }, {  85,   0 }, {  86,   0 }, {  87,   0 }, {  88,   0 },

 {  89,   0 }, {  90,   0 }, {  91,   0 }, {  92, 130 }, {  93,   0 },
 {  94,   0 }, {  95,   0 }, {  96,   0 }, {  97,   0 }, {  98,   0 },
 {  99,   0 }, { 100,   0 }, { 101,   0 }, { 102,   0 }, { 103,   0 },
 { 104,   0 }, { 105,   0 }, { 106,   0 }, { 107,   0 }, { 108,   0 },
 { 109,   0 }, { 110,   0 }, { 111,   0 }, { 112,   0 }, { 113,   0 },
 { 114,   0 }, { 115,   0 }, { 116,   0 }, { 117,   0 }, { 118,   0 },
 { 119,   0 }, { 120,   0 }, { 121,   0 }, { 122,   0 }, { 123,   0 },
 { 124,   0 }, { 125,   0 }, { 126,   0 }, { 127,   0 }, { 128,   0 },
 {   0,   0 }, {   0, 833 }, {   1, 573 }, {   2, 573 }, {   3, 573 },
 {   4, 573 }, {   5, 573 }, {   6, 573 }, {   7, 573 }, {   8, 573 },

 {   9, 573 }, {  10, 573 }, {  11, 573 }, {  12, 573 }, {  13, 573 },
 {  14, 573 }, {  15, 573 }, {  16, 573 }, {  17, 573 }, {  18, 573 },
 {  19, 573 }, {  20, 573 }, {  21, 573 }, {  22, 573 }, {  23, 573 },
 {  24, 573 }, {  25, 573 }, {  26, 573 }, {  27, 573 }, {  28, 573 },
 {  29, 573 }, {  30, 573 }, {  31, 573 }, {  32, 573 }, {  33, 573 },
 {  34, 573 }, {  35, 573 }, {  36, 573 }, {  37, 573 }, {  38, 573 },
 {  39, 573 }, {  40, 573 }, {  41, 573 }, {  42, 573 }, {  43, 573 },
 {  44, 573 }, {  45, 573 }, {  46, 573 }, {  47, 573 }, {  48, 573 },
 {  49, 573 }, {  50, 573 }, {  51, 573 }, {  52, 573 }, {  53, 573 },
 {  54, 573 }, {  55, 573 }, {  56, 573 }, {  57, 573 }, {  58, 573 },

 {  59, 573 }, {  60, 573 }, {  61, 573 }, {  62, 573 }, {  63, 573 },
 {  64, 573 }, {  65, 573 }, {  66, 573 }, {  67, 573 }, {  68, 573 },
 {  69, 573 }, {  70, 573 }, {  71, 573 }, {  72, 573 }, {  73, 573 },
 {  74, 573 }, {  75, 573 }, {  76, 573 }, {  77, 573 }, {  78, 573 },
 {  79, 573 }, {  80, 573 }, {  81, 573 }, {  82, 573 }, {  83, 573 },
 {  84, 573 }, {  85, 573 }, {  86, 573 }, {  87, 573 }, {  88, 573 },
 {  89, 573 }, {  90, 573 }, {  91, 573 }, {  92, 573 }, {  93, 573 },
 {  94, 573 }, {  95, 573 }, {  96, 573 }, {  97, 573 }, {  98, 573 },
 {  99, 573 }, { 100, 573 }, { 101, 573 }, { 102, 573 }, { 103, 573 },
 { 104, 573 }, { 105, 573 }, { 106, 573 }, { 107, 573 }, { 108, 573 },

 { 109, 573 }, { 110, 573 }, { 111, 573 }, { 112, 573 }, { 113, 573 },
 { 114, 573 }, { 115, 573 }, { 116, 573 }, { 117, 573 }, { 118, 573 },
 { 119, 573 }, { 120, 573 }, { 121, 573 }, { 122, 573 }, { 123, 573 },
 { 124, 573 }, { 125, 573 }, { 126, 573 }, { 127, 573 }, { 128, 573 },
 {   0,  36 }, {   0, 703 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },

 {   0,   0 }, {   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 }, {  48,   0 },
 {  49,   0 }, {  50,   0 }, {  51,   0 }, {  52,   0 }, {  53,   0 },
 {  54,   0 }, {  55,   0 }, {  56,   0 }, {  57,   0 }, {   0,   0 },
 {   0, 644 }, {   1, 514 }, {   2, 514 }, {   3, 514 }, {   4, 514 },
 {   5, 514 }, {   6, 514 }, {   7, 514 }, {   8, 514 }, {   9, 514 },
 {  10,-402 }, {  11, 514 }, {  12, 514 }, {  13, 514 }, {  14, 514 },
 {  15, 514 }, {  16, 514 }, {  17, 514 }, {  18, 514 }, {  19, 514 },

 {  20, 514 }, {  21, 514 }, {  22, 514 }, {  23, 514 }, {  24, 514 },
 {  25, 514 }, {  26, 514 }, {  27, 514 }, {  28, 514 }, {  29, 514 },
 {  30, 514 }, {  31, 514 }, {  32, 514 }, {  33, 514 }, {  34, 514 },
 {  35, 514 }, {  36, 514 }, {  37, 514 }, {  38, 514 }, {  39, 514 },
 {  40, 514 }, {  41, 514 }, {  42, 514 }, {  43, 514 }, {  44, 514 },
 {  45, 514 }, {  46, 514 }, {  47, 514 }, {  48, 514 }, {  49, 514 },
 {  50, 514 }, {  51, 514 }, {  52, 514 }, {  53, 514 }, {  54, 514 },
 {  55, 514 }, {  56, 514 }, {  57, 514 }, {  58, 514 }, {  59, 514 },
 {  60, 514 }, {  61, 514 }, {  62, 514 }, {  63, 514 }, {  64, 514 },
 {  65, 514 }, {  66, 514 }, {  67, 514 }, {  68, 514 }, {  69, 514 },

 {  70, 514 }, {  71, 514 }, {  72, 514 }, {  73, 514 }, {  74, 514 },
 {  75, 514 }, {  76, 514 }, {  77, 514 }, {  78, 514 }, {  79, 514 },
 {  80, 514 }, {  81, 514 }, {  82, 514 }, {  83, 514 }, {  84, 514 },
 {  85, 514 }, {  86, 514 }, {  87, 514 }, {  88, 514 }, {  89, 514 },
 {  90, 514 }, {  91, 514 }, {  92, 514 }, {  93, 514 }, {  94, 514 },
 {  95, 514 }, {  96, 514 }, {  97, 514 }, {  98, 514 }, {  99, 514 },
 { 100, 514 }, { 101, 514 }, { 102, 514 }, { 103, 514 }, { 104, 514 },
 { 105, 514 }, { 106, 514 }, { 107, 514 }, { 108, 514 }, { 109, 514 },
 { 110, 514 }, { 111, 514 }, { 112, 514 }, { 113, 514 }, { 114, 514 },
 { 115, 514 }, { 116, 514 }, { 117, 514 }, { 118, 514 }, { 119, 514 },

 { 120, 514 }, { 121, 514 }, { 122, 514 }, { 123, 514 }, { 124, 514 },
 { 125, 514 }, { 126, 514 }, { 127, 514 }, { 128, 514 }, {   0,  38 },
 {   0, 514 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {  33,   0 }, {   0,   0 },
 {   0,   0 }, {  36,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },

 {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {  48,   0 }, {  49,   0 },
 {  50,   0 }, {  51,   0 }, {  52,   0 }, {  53,   0 }, {  54,   0 },
 {  55,   0 }, {  56,   0 }, {  57,   0 }, {  58,   0 }, {   0,   0 },
 {   0,   0 }, {   0,   0 }, {   0,   0 }, {  63,   0 }, {   0,   0 },
 {  65,   0 }, {  66,   0 }, {  67,   0 }, {  68,   0 }, {  69,   0 },
 {  70,   0 }, {  71,   0 }, {  72,   0 }, {  73,   0 }, {  74,   0 },
 {  75,   0 }, {  76,   0 }, {  77,   0 }, {  78,   0 }, {  79,   0 },
 {  80,   0 }, {  81,   0 }, {  82,   0 }, {  83,   0 }, {  84,   0 },
 {  85,   0 }, {  86,   0 }, {  87,   0 }, {  88,   0 }, {  89,   0 },

 {  90,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 }, {   0,   0 },
 {  95,   0 }, {   0,   0 }, {  97,   0 }, {  98,   0 }, {  99,   0 },
 { 100,   0 }, { 101,   0 }, { 102,   0 }, { 103,   0 }, { 104,   0 },
 { 105,   0 }, { 106,   0 }, { 107,   0 }, { 108,   0 }, { 109,   0 },
 { 110,   0 }, { 111,   0 }, { 112,   0 }, { 113,   0 }, { 114,   0 },
 { 115,   0 }, { 116,   0 }, { 117,   0 }, { 118,   0 }, { 119,   0 },
 { 120,   0 }, { 121,   0 }, { 122,   0 }, {   0,  35 }, {   0, 390 },
 {   1,-654 }, {   2,-654 }, {   3,-654 }, {   4,-654 }, {   5,-654 },
 {   6,-654 }, {   7,-654 }, {   8,-654 }, {   9,-654 }, {   0,   0 },
 {  11,-654 }, {  12,-654 }, {  13,-654 }, {  14,-654 }, {  15,-654 },

 {  16,-654 }, {  17,-654 }, {  18,-654 }, {  19,-654 }, {  20,-654 },
 {  21,-654 }, {  22,-654 }, {  23,-654 }, {  24,-654 }, {  25,-654 },
 {  26,-654 }, {  27,-654 }, {  28,-654 }, {  29,-654 }, {  30,-654 },
 {  31,-654 }, {  32,-654 }, {  33,-654 }, {  34,-654 }, {  35,-654 },
 {  36,-654 }, {  37,-654 }, {  38,-654 }, {  39,-654 }, {  40,-654 },
 {  41,-654 }, {  42,-654 }, {  43,-654 }, {  44,-654 }, {  45,-654 },
 {  46,-654 }, {  47,-654 }, {  48,-654 }, {  49,-654 }, {  50,-654 },
 {  51,-654 }, {  52,-654 }, {  53,-654 }, {  54,-654 }, {  55,-654 },
 {  56,-654 }, {  57,-654 }, {  58,-654 }, {  59,-654 }, {  60,-654 },
 {  61,-654 }, {  62,-654 }, {  63,-654 }, {  64,-654 }, {  65,-654 },

 {  66,-654 }, {  67,-654 }, {  68,-654 }, {  69,-654 }, {  70,-654 },
 {  71,-654 }, {  72,-654 }, {  73,-654 }, {  74,-654 }, {  75,-654 },
 {  76,-654 }, {  77,-654 }, {  78,-654 }, {  79,-654 }, {  80,-654 },
 {  81,-654 }, {  82,-654 }, {  83,-654 }, {  84,-654 }, {  85,-654 },
 {  86,-654 }, {  87,-654 }, {  88,-654 }, {  89,-654 }, {  90,-654 },
 {  91,-654 }, {  92,-654 }, {  93,-654 }, {  94,-654 }, {  95,-654 },
 {  96,-654 }, {  97,-654 }, {  98,-654 }, {  99,-654 }, { 100,-654 },
 { 101,-654 }, { 102,-654 }, { 103,-654 }, { 104,-654 }, { 105,-654 },
 { 106,-654 }, { 107,-654 }, { 108,-654 }, { 109,-654 }, { 110,-654 },
 { 111,-654 }, { 112,-654 }, { 113,-654 }, { 114,-654 }, { 115,-654 },

 { 116,-654 }, { 117,-654 }, { 118,-654 }, { 119,-654 }, { 120,-654 },
 { 121,-654 }, { 122,-654 }, { 123,-654 }, { 124,-654 }, { 125,-654 },
 { 126,-654 }, { 127,-654 }, { 128,-654 }, {   0,   0 }, {   0, 260 },
 {   1,-703 }, {   2,-703 }, {   3,-703 }, {   4,-703 }, {   5,-703 },
 {   6,-703 }, {   7,-703 }, {   8,-703 }, {   9,-703 }, {   0,   0 },
 {  11,-703 }, {  12,-703 }, {  13,-703 }, {  14,-703 }, {  15,-703 },
 {  16,-703 }, {  17,-703 }, {  18,-703 }, {  19,-703 }, {  20,-703 },
 {  21,-703 }, {  22,-703 }, {  23,-703 }, {  24,-703 }, {  25,-703 },
 {  26,-703 }, {  27,-703 }, {  28,-703 }, {  29,-703 }, {  30,-703 },
 {  31,-703 }, {  32,-703 }, {  33,-703 }, {  34,-809 }, {  35,-703 },

 {  36,-703 }, {  37,-703 }, {  38,-703 }, {  39,-703 }, {  40,-703 },
 {  41,-703 }, {  42,-703 }, {  43,-703 }, {  44,-703 }, {  45,-703 },
 {  46,-703 }, {  47,-703 }, {  48,-703 }, {  49,-703 }, {  50,-703 },
 {  51,-703 }, {  52,-703 }, {  53,-703 }, {  54,-703 }, {  55,-703 },
 {  56,-703 }, {  57,-703 }, {  58,-703 }, {  59,-703 }, {  60,-703 },
 {  61,-703 }, {  62,-703 }, {  63,-703 }, {  64,-703 }, {  65,-703 },
 {  66,-703 }, {  67,-703 }, {  68,-703 }, {  69,-703 }, {  70,-703 },
 {  71,-703 }, {  72,-703 }, {  73,-703 }, {  74,-703 }, {  75,-703 },
 {  76,-703 }, {  77,-703 }, {  78,-703 }, {  79,-703 }, {  80,-703 },
 {  81,-703 }, {  82,-703 }, {  83,-703 }, {  84,-703 }, {  85,-703 },

 {  86,-703 }, {  87,-703 }, {  88,-703 }, {  89,-703 }, {  90,-703 },
 {  91,-703 }, {  92,-573 }, {  93,-703 }, {  94,-703 }, {  95,-703 },
 {  96,-703 }, {  97,-703 }, {  98,-703 }, {  99,-703 }, { 100,-703 },
 { 101,-703 }, { 102,-703 }, { 103,-703 }, { 104,-703 }, { 105,-703 },
 { 106,-703 }, { 107,-703 }, { 108,-703 }, { 109,-703 }, { 110,-703 },
 { 111,-703 }, { 112,-703 }, { 113,-703 }, { 114,-703 }, { 115,-703 },
 { 116,-703 }, { 117,-703 }, { 118,-703 }, { 119,-703 }, { 120,-703 },
 { 121,-703 }, { 122,-703 }, { 123,-703 }, { 124,-703 }, { 125,-703 },
 { 126,-703 }, { 127,-703 }, { 128,-703 }, {   0,   0 }, {   0, 130 },
 {   1,   0 }, {   2,   0 }, {   3,   0 }, {   4,   0 }, {   5,   0 },

 {   6,   0 }, {   7,   0 }, {   8,   0 }, {   9,   0 }, {  10,-916 },
 {  11,   0 }, {  12,   0 }, {  13,   0 }, {  14,   0 }, {  15,   0 },
 {  16,   0 }, {  17,   0 }, {  18,   0 }, {  19,   0 }, {  20,   0 },
 {  21,   0 }, {  22,   0 }, {  23,   0 }, {  24,   0 }, {  25,   0 },
 {  26,   0 }, {  27,   0 }, {  28,   0 }, {  29,   0 }, {  30,   0 },
 {  31,   0 }, {  32,   0 }, {  33,   0 }, {  34,   0 }, {  35,   0 },
 {  36,   0 }, {  37,   0 }, {  38,   0 }, {  39,   0 }, {  40,   0 },
 {  41,   0 }, {  42,   0 }, {  43,   0 }, {  44,   0 }, {  45,   0 },
 {  46,   0 }, {  47,   0 }, {  48,   0 }, {  49,   0 }, {  50,   0 },
 {  51,   0 }, {  52,   0 }, {  53,   0 }, {  54,   0 }, {  55,   0 },

 {  56,   0 }, {  57,   0 }, {  58,   0 }, {  59,   0 }, {  60,   0 },
 {  61,   0 }, {  62,   0 }, {  63,   0 }, {  64,   0 }, {  65,   0 },
 {  66,   0 }, {  67,   0 }, {  68,   0 }, {  69,   0 }, {  70,   0 },
 {  71,   0 }, {  72,   0 }, {  73,   0 }, {  74,   0 }, {  75,   0 },
 {  76,   0 }, {  77,   0 }, {  78,   0 }, {  79,   0 }, {  80,   0 },
 {  81,   0 }, {  82,   0 }, {  83,   0 }, {  84,   0 }, {  85,   0 },
 {  86,   0 }, {  87,   0 }, {  88,   0 }, {  89,   0 }, {  90,   0 },
 {  91,   0 }, {  92,   0 }, {  93,   0 }, {  94,   0 }, {  95,   0 },
 {  96,   0 }, {  97,   0 }, {  98,   0 }, {  99,   0 }, { 100,   0 },
 { 101,   0 }, { 102,   0 }, { 103,   0 }, { 104,   0 }, { 105,   0 },

 { 106,   0 }, { 107,   0 }, { 108,   0 }, { 109,   0 }, { 110,   0 },
 { 111,   0 }, { 112,   0 }, { 113,   0 }, { 114,   0 }, { 115,   0 },
 { 116,   0 }, { 117,   0 }, { 118,   0 }, { 119,   0 }, { 120,   0 },
 { 121,   0 }, { 122,   0 }, { 123,   0 }, { 124,   0 }, { 125,   0 },
 { 126,   0 }, { 127,   0 }, { 128,   0 }, { 129,  41 }, {   1,   0 },
    };

static yyconst struct yy_trans_info *yy_start_state_list[3] =
    {
    &yy_transition[1],
    &yy_transition[3],
    &yy_transition[133],
    } ;

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 "lexer.l"
#define INITIAL 0
#line 2 "lexer.l"
#include <string.h>
#include <stdlib.h>
#ifndef _WIN32
#include <unistd.h>
#endif

#include "mudlle.h"
#include "utils.h"
#include "mparser.h"
#include "lexer.h"

/* We never wrap into another file */
#define YY_SKIP_YYWRAP
#define yywrap() (1)

#define YY_USE_PROTOS

#undef YY_INPUT
#define YY_INPUT(buf, result, max_size) \
  { if (!line_read) (result) = read(fileno(yyin), (buf), (max_size)); \
  else (result) = string_read((buf), (max_size)); }

static int string_read(char *buf, int max_size);

static YY_BUFFER_STATE buf;
static int line_read;
static const char *line;
static int length;
int lineno;
const char *filename;

struct lkeyword {
  const char *name;
  int value;
};

static struct lkeyword keywords[] = {
  { "fn", FUNCTION },
  { "if", IF },
  { "else", ELSE },
  { "while", WHILE },
  { "or", OR },
  { "and", AND },
  { "not", NOT },
  { "exit", MEXIT },
  { "loop", LOOP },

  { "library", LIBRARY },
  { "module", MODULE },
  { "requires", IMPORTS },
  { "reads", READS },
  { "writes", WRITES },
  { "defines", DEFINES }
};
#define NKEYWORDS (sizeof keywords / sizeof(struct lkeyword))

#line 783 "lex.yy.c"

/* 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 ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
            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

/* 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 \
      YY_USER_ACTION

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

#line 57 "lexer.l"


#line 924 "lex.yy.c"

      if ( yy_init )
            {
            yy_init = 0;

#ifdef YY_USER_INIT
            YY_USER_INIT;
#endif

            if ( ! yy_start )
                  yy_start = 1;     /* first start state */

            if ( ! yyin )
                  yyin = stdin;

            if ( ! yyout )
                  yyout = stdout;

            if ( ! yy_current_buffer )
                  yy_current_buffer =
                        yy_create_buffer( yyin, YY_BUF_SIZE );

            yy_load_buffer_state();
            }

      while ( 1 )       /* loops until end-of-file is reached */
            {
            yy_cp = yy_c_buf_p;

            /* Support of yytext. */
            *yy_cp = yy_hold_char;

            /* yy_bp points to the position in yy_ch_buf of the start of
             * the current run.
             */
            yy_bp = yy_cp;

            yy_current_state = yy_start_state_list[yy_start];
yy_match:
            {
            register yyconst struct yy_trans_info *yy_trans_info;

            register YY_CHAR yy_c;

            for ( yy_c = YY_SC_TO_UI(*yy_cp);
                  (yy_trans_info = &yy_current_state[(unsigned int) yy_c])->
            yy_verify == yy_c;
                  yy_c = YY_SC_TO_UI(*++yy_cp) )
                  {
                  yy_current_state += yy_trans_info->yy_nxt;

                  if ( yy_current_state[-1].yy_nxt )
                        {
                        yy_last_accepting_state = yy_current_state;
                        yy_last_accepting_cpos = yy_cp;
                        }
                  }
            }

yy_find_action:
            yy_act = yy_current_state[-1].yy_nxt;

            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 + 1;
                  yy_current_state = yy_last_accepting_state;
                  goto yy_find_action;

case 1:
YY_RULE_SETUP
#line 59 "lexer.l"
{ lineno++; }
      YY_BREAK
case 2:
YY_RULE_SETUP
#line 60 "lexer.l"
{ }
      YY_BREAK
case 3:
YY_RULE_SETUP
#line 61 "lexer.l"
{ lineno++; }
      YY_BREAK
case 4:
YY_RULE_SETUP
#line 62 "lexer.l"
{ /* start of multi-line comment */
         /* find end of comment */
         int depth = 1, c, star = FALSE, slash = FALSE;

#ifndef __cplusplus
#define yyinput input
#endif
         while (depth > 0 && (c = yyinput()) != EOF)
           {
             if (c == '\n') lineno++;
             else if (c == '*' && slash) depth++;
             else if (c == '/' && star) depth--;
             star = c == '*';
             slash = c == '/';
           }
         }
      YY_BREAK
case 5:
YY_RULE_SETUP
#line 78 "lexer.l"
{ return SC_AND; }
      YY_BREAK
case 6:
YY_RULE_SETUP
#line 79 "lexer.l"
{ return SC_OR; }
      YY_BREAK
case 7:
YY_RULE_SETUP
#line 80 "lexer.l"
{ return NOT; }
      YY_BREAK
case 8:
YY_RULE_SETUP
#line 81 "lexer.l"
{ return '['; }
      YY_BREAK
case 9:
YY_RULE_SETUP
#line 82 "lexer.l"
{ return ']'; }
      YY_BREAK
case 10:
YY_RULE_SETUP
#line 83 "lexer.l"
{ return '|'; }
      YY_BREAK
case 11:
YY_RULE_SETUP
#line 84 "lexer.l"
{ return ';'; }
      YY_BREAK
case 12:
YY_RULE_SETUP
#line 85 "lexer.l"
{ return '+'; }
      YY_BREAK
case 13:
YY_RULE_SETUP
#line 86 "lexer.l"
{ return '-'; }
      YY_BREAK
case 14:
YY_RULE_SETUP
#line 87 "lexer.l"
{ return '*'; }
      YY_BREAK
case 15:
YY_RULE_SETUP
#line 88 "lexer.l"
{ return '/'; }
      YY_BREAK
case 16:
YY_RULE_SETUP
#line 89 "lexer.l"
{ return '%'; }
      YY_BREAK
case 17:
YY_RULE_SETUP
#line 90 "lexer.l"
{ return '('; }
      YY_BREAK
case 18:
YY_RULE_SETUP
#line 91 "lexer.l"
{ return ')'; }
      YY_BREAK
case 19:
YY_RULE_SETUP
#line 92 "lexer.l"
{ return '&'; }
      YY_BREAK
case 20:
YY_RULE_SETUP
#line 93 "lexer.l"
{ return '~'; }
      YY_BREAK
case 21:
YY_RULE_SETUP
#line 94 "lexer.l"
{ return '^'; }
      YY_BREAK
case 22:
YY_RULE_SETUP
#line 95 "lexer.l"
{ return ','; }
      YY_BREAK
case 23:
YY_RULE_SETUP
#line 96 "lexer.l"
{ return '.'; }
      YY_BREAK
case 24:
YY_RULE_SETUP
#line 97 "lexer.l"
{ return ASSIGN; }
      YY_BREAK
case 25:
YY_RULE_SETUP
#line 98 "lexer.l"
{ return EQ; }
      YY_BREAK
case 26:
YY_RULE_SETUP
#line 99 "lexer.l"
{ return NE; }
      YY_BREAK
case 27:
YY_RULE_SETUP
#line 100 "lexer.l"
{ return LT; }
      YY_BREAK
case 28:
YY_RULE_SETUP
#line 101 "lexer.l"
{ return LE; }
      YY_BREAK
case 29:
YY_RULE_SETUP
#line 102 "lexer.l"
{ return GT; }
      YY_BREAK
case 30:
YY_RULE_SETUP
#line 103 "lexer.l"
{ return GE; }
      YY_BREAK
case 31:
YY_RULE_SETUP
#line 104 "lexer.l"
{ return SHIFT_LEFT; }
      YY_BREAK
case 32:
YY_RULE_SETUP
#line 105 "lexer.l"
{ return SHIFT_RIGHT; }
      YY_BREAK
case 33:
YY_RULE_SETUP
#line 106 "lexer.l"
{ return QUOTE; }
      YY_BREAK
case 34:
YY_RULE_SETUP
#line 108 "lexer.l"
{
        switch (yytext[2])
          {
          case 'n': yylval.integer = '\n'; break;
          case 'r': yylval.integer = '\r'; break;
          case 't': yylval.integer = '\t'; break;
          default: yylval.integer = yytext[2]; break;
          }
        return INTEGER;
      }
      YY_BREAK
case 35:
YY_RULE_SETUP
#line 118 "lexer.l"
{ yylval.integer = yytext[1]; return INTEGER; }
      YY_BREAK
case 36:
YY_RULE_SETUP
#line 119 "lexer.l"
{ yylval.integer = atoi(yytext); return INTEGER; }
      YY_BREAK
case 37:
YY_RULE_SETUP
#line 120 "lexer.l"
{ char *str = yylval.string =
                        allocate(parser_memory, strlen(yytext));
                        const char *text = yytext + 1;

                        while (*text)
                        if (*text == '\\' && text[1])
                          {
                            switch (text[1])
                              {
                              case '\n': lineno++; break;
                              case 'n': *str++ = '\n'; break;
                              case 'r': *str++ = '\r'; break;
                              case 't': *str++ = '\t'; break;
                              default: *str++ = text[1]; break;
                              }
                            text += 2;
                          }
                        else *str++ = *text++;

                        str[-1] = '\0';
                        return STRING;
                      }
      YY_BREAK
case 38:
YY_RULE_SETUP
#line 142 "lexer.l"
{ 
                        int i;

                        for (i = 0; i < NKEYWORDS; i++)
                          if (stricmp(yytext, keywords[i].name) == 0)
                            return keywords[i].value;

                        yylval.symbol = allocate(parser_memory,
                                           strlen(yytext) + 1);
                        strlwr(strcpy(yylval.symbol, yytext));
                        return SYMBOL; 
                      }
      YY_BREAK
case 39:
YY_RULE_SETUP
#line 155 "lexer.l"
{ error("Bad character %s(%02x)\n", yytext, (unsigned char)yytext[0]); }
      YY_BREAK
case 40:
YY_RULE_SETUP
#line 157 "lexer.l"
ECHO;
      YY_BREAK
#line 1258 "lex.yy.c"
case YY_STATE_EOF(INITIAL):
      yyterminate();

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

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

            if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
                  {
                  /* We're scanning a new file or input source.  It's
                   * possible that this happened because the user
                   * just pointed yyin at a new source and called
                   * yylex().  If so, then we have to assure
                   * consistency between yy_current_buffer and our
                   * globals.  Here is the right place to do so, because
                   * this is the first action (other than possibly a
                   * back-up) that will match for the new input source.
                   */
                  yy_n_chars = yy_current_buffer->yy_n_chars;
                  yy_current_buffer->yy_input_file = yyin;
                  yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
                  }

            /* Note that here we test for yy_c_buf_p "<=" to the position
             * of the first EOB in the buffer, since yy_c_buf_p will
             * already have been incremented past the NUL character
             * (since all states make transitions on EOB to the
             * end-of-buffer state).  Contrast this with the test
             * in input().
             */
            if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
                  { /* This was really a NUL. */
                  yy_state_type yy_next_state;

                  yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;

                  yy_current_state = yy_get_previous_state();

                  /* Okay, we're now positioned to make the NUL
                   * transition.  We couldn't have
                   * yy_get_previous_state() go ahead and do it
                   * for us because it doesn't know how to deal
                   * with the possibility of jamming (and we don't
                   * want to build jamming into it because then it
                   * will run more slowly).
                   */

                  yy_next_state = yy_try_NUL_trans( yy_current_state );

                  yy_bp = yytext_ptr + YY_MORE_ADJ;

                  if ( yy_next_state )
                        {
                        /* Consume the NUL. */
                        yy_cp = ++yy_c_buf_p;
                        yy_current_state = yy_next_state;
                        goto yy_match;
                        }

                  else
                        {
                        yy_cp = yy_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_state_list[yy_start];

      for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
            {
            yy_current_state += yy_current_state[(*yy_cp ? YY_SC_TO_UI(*yy_cp) : 128)].yy_nxt;
            if ( yy_current_state[-1].yy_nxt )
                  {
                  yy_last_accepting_state = yy_current_state;
                  yy_last_accepting_cpos = yy_cp;
                  }
            }

      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 int yy_c = 128;
      register yyconst struct yy_trans_info *yy_trans_info;

      yy_trans_info = &yy_current_state[(unsigned int) yy_c];
      yy_current_state += yy_trans_info->yy_nxt;
      yy_is_jam = (yy_trans_info->yy_verify != yy_c);

      if ( ! yy_is_jam )
            {
            if ( yy_current_state[-1].yy_nxt )
                  {
                  yy_last_accepting_state = yy_current_state;
                  yy_last_accepting_cpos = yy_cp;
                  }
            }

      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;


      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 YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
extern int isatty YY_PROTO(( int ));
#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 157 "lexer.l"


static int string_read(char *buf, int max_size)
{
  int cnt;

  cnt = max_size;
  if (cnt > length) cnt = length;

  memcpy(buf, line, cnt);
  line += cnt;
  length -= cnt;

  return cnt;
}


void read_from_file(FILE *f, const char *name)
{
  if (!buf) buf = yy_create_buffer(f, YY_BUF_SIZE);
  else yy_init_buffer(buf, f);
  
  yy_current_buffer = 0;
  yy_switch_to_buffer(buf);
  line_read = FALSE;
  lineno = 1;
  filename = name;
}

void read_from_string(const char *str)
{
  if (!buf) buf = yy_create_buffer(stdin, YY_BUF_SIZE);
  else yy_init_buffer(buf, stdin);
  
  yy_current_buffer = 0;
  yy_switch_to_buffer(buf);
  line_read = TRUE;
  line = str;
  length = strlen(line);
  lineno = 0;
  filename = "<string>";
}

Generated by  Doxygen 1.6.0   Back to index