📄 lexyy.c
字号:
/* A lexical scanner generated by flex *//* Scanner skeleton version: * $Header: /home/heikki/cvsroot/ib/pars/lexyy.c,v 1.2 2003/10/30 20:27:19 heikki Exp $ *//* This include MUST be first to keep things portable ! */#include "univ.i"#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>/* 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 16384typedef 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)#define yywrap() 1#define YY_SKIP_YYWRAPtypedef unsigned char YY_CHAR;FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;typedef int yy_state_type;extern char *yytext;#define yytext_ptr yytextstatic 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 107#define YY_END_OF_BUFFER 108static yyconst short int yy_accept[367] = { 0, 0, 0, 102, 102, 0, 0, 108, 106, 105, 105, 97, 3, 86, 92, 95, 93, 90, 94, 106, 96, 1, 106, 91, 89, 87, 88, 100, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 98, 99, 102, 103, 4, 5, 105, 81, 101, 2, 1, 82, 83, 85, 84, 80, 80, 80, 80, 80, 38, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 21, 12, 18, 80, 80, 80, 80, 48, 55, 80, 9, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 102, 103, 103, 104, 4, 5, 2, 8, 39, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 20, 80, 80, 34, 80, 80, 80, 14, 80, 80, 10, 80, 80, 80, 13, 80, 80, 80, 80, 80, 74, 80, 80, 80, 45, 7, 80, 29, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 17, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 40, 80, 80, 23, 80, 80, 80, 32, 80, 80, 80, 80, 42, 80, 25, 80, 6, 58, 80, 80, 80, 36, 80, 80, 80, 80, 80, 80, 80, 80, 80, 22, 80, 80, 80, 80, 80, 80, 80, 80, 79, 80, 19, 80, 60, 80, 80, 80, 80, 30, 80, 80, 80, 80, 80, 80, 80, 24, 59, 16, 51, 80, 69, 80, 80, 80, 37, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 50, 80, 80, 80, 80, 80, 80, 33, 26, 73, 80, 80, 77, 68, 80, 49, 80, 57, 80, 46, 80, 80, 41, 80, 70, 80, 72, 80, 80, 27, 80, 80, 80, 28, 66, 80, 80, 80, 80, 52, 44, 43, 80, 80, 80, 47, 56, 80, 80, 15, 80, 80, 67, 75, 80, 80, 71, 80, 62, 80, 80, 80, 80, 31, 80, 61, 80, 78, 80, 80, 80, 80, 53, 80, 80, 11, 80, 64, 63, 80, 35, 80, 76, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 65, 80, 80, 80, 80, 80, 80, 54, 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, 1, 1, 1, 4, 1, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 17, 18, 19, 20, 1, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 30, 1, 1, 1, 1, 46, 1, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 47, 1, 48, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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[49] = { 0, 1, 1, 1, 1, 2, 1, 1, 3, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1 } ;static yyconst short int yy_base[373] = { 0, 0, 0, 387, 386, 388, 387, 391, 396, 47, 49, 396, 396, 396, 396, 396, 396, 396, 396, 378, 381, 41, 370, 396, 38, 396, 369, 396, 20, 33, 32, 36, 34, 44, 0, 46, 49, 40, 57, 348, 52, 63, 68, 56, 364, 66, 396, 396, 0, 89, 0, 379, 103, 396, 396, 369, 95, 396, 396, 396, 396, 0, 358, 76, 354, 346, 0, 358, 75, 78, 353, 339, 90, 337, 350, 335, 349, 332, 336, 332, 334, 0, 93, 0, 334, 332, 326, 333, 0, 0, 339, 339, 322, 85, 100, 337, 91, 86, 328, 102, 320, 336, 332, 310, 326, 330, 321, 102, 314, 0, 117, 129, 396, 0, 346, 336, 0, 0, 324, 319, 326, 308, 306, 305, 310, 105, 308, 320, 100, 308, 314, 315, 297, 297, 116, 0, 312, 313, 0, 300, 307, 118, 121, 304, 294, 303, 296, 293, 301, 0, 291, 301, 299, 290, 280, 274, 287, 272, 292, 0, 0, 277, 0, 291, 282, 279, 125, 275, 290, 269, 271, 276, 276, 268, 271, 266, 0, 278, 262, 272, 279, 270, 258, 257, 271, 260, 273, 253, 0, 263, 245, 0, 264, 261, 248, 0, 243, 248, 247, 257, 0, 243, 0, 247, 0, 0, 243, 240, 254, 0, 239, 239, 237, 253, 238, 250, 232, 250, 245, 0, 240, 240, 226, 225, 225, 239, 238, 237, 0, 221, 0, 215, 0, 234, 218, 217, 217, 0, 230, 220, 215, 214, 226, 216, 215, 0, 0, 0, 0, 208, 0, 222, 218, 204, 0, 218, 219, 202, 207, 200, 218, 200, 197, 198, 195, 0, 200, 212, 199, 206, 205, 190, 0, 0, 0, 182, 189, 0, 0, 186, 0, 185, 0, 199, 0, 200, 187, 0, 183, 0, 186, 0, 178, 180, 0, 179, 193, 186, 0, 0, 189, 192, 174, 189, 0, 0, 0, 170, 184, 183, 0, 0, 167, 166, 0, 181, 166, 0, 0, 172, 168, 0, 163, 0, 175, 164, 174, 163, 0, 150, 0, 170, 0, 154, 148, 154, 145, 0, 150, 163, 0, 162, 0, 0, 153, 0, 157, 0, 144, 144, 150, 136, 159, 151, 152, 136, 119, 109, 0, 121, 128, 119, 116, 112, 104, 0, 396, 159, 163, 59, 167, 171, 175 } ;static yyconst short int yy_def[373] = { 0, 366, 1, 367, 367, 368, 368, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 366, 366, 370, 371, 372, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 370, 371, 371, 366, 372, 366, 366, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 0, 366, 366, 366, 366, 366, 366 } ;static yyconst short int yy_nxt[445] = { 0, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 34, 35, 34, 34, 36, 34, 37, 38, 39, 34, 40, 41, 42, 43, 44, 45, 34, 34, 34, 46, 47, 52, 52, 52, 52, 55, 62, 56, 58, 59, 64, 63, 67, 72, 65, 61, 68, 73, 75, 69, 76, 77, 70, 74, 81, 71, 84, 86, 78, 94, 66, 79, 82, 87, 80, 88, 85, 83, 95, 96, 97, 101, 104, 89, 105, 90, 107, 91, 102, 111, 92, 117, 98, 108, 112, 103, 99, 52, 52, 55, 100, 56, 122, 124, 125, 129, 150, 118, 123, 140, 158, 126, 151, 152, 130, 156, 161, 366, 159, 170, 180, 131, 366, 171, 141, 142, 157, 162, 153, 111, 184, 185, 154, 191, 112, 197, 181, 192, 199, 220, 221, 365, 364, 363, 362, 361, 360, 359, 200, 358, 198, 222, 48, 48, 48, 48, 50, 50, 50, 50, 109, 109, 357, 109, 110, 110, 110, 110, 113, 356, 113, 113, 355, 354, 353, 352, 351, 350, 349, 348, 347, 346, 345, 344, 343, 342, 341, 340, 339, 338, 337, 336, 335, 334, 333, 332, 331, 330, 329, 328, 327, 326, 325, 324, 323, 322, 321, 320, 319, 318, 317, 316, 315, 314, 313, 312, 311, 310, 309, 308, 307, 306, 305, 304, 303, 302, 301, 300, 299, 298, 297, 296, 295, 294, 293, 292, 291, 290, 289, 288, 287, 286, 285, 284, 283, 282, 281, 280, 279, 278, 277, 276, 275, 274, 273, 272, 271, 270, 269, 268, 267, 266, 265, 264, 263, 262, 261, 260, 259, 258, 257, 256, 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240, 239, 238, 237, 236, 235, 234, 233, 232, 231, 230, 229, 228, 227, 226, 225, 224, 223, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 209, 208, 207, 206, 205, 204, 203, 202, 201, 196, 195, 194, 193, 190, 189, 188, 187, 186, 183, 182, 179, 178, 177, 176, 175, 174, 173, 115, 114, 172, 169, 168, 167, 166, 165, 164, 163, 160, 155, 149, 148, 147, 146, 145, 144, 143, 139, 138, 137, 136, 135, 134, 133, 132, 128, 127, 121, 120, 119, 116, 115, 114, 106, 93, 60, 57, 54, 53, 366, 51, 51, 49, 49, 7, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, 366 } ;static yyconst short int yy_chk[445] = { 0,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -