📄 configlexer.cpp
字号:
#line 2 "ConfigLexer.cpp"/* A lexical scanner generated by flex *//* Scanner skeleton version: * $Header: /cvs/Producer/Producer/src/ConfigLexer.cpp,v 1.23 2006/09/06 22:56:30 don Exp $ */#define FLEX_SCANNER#define YY_FLEX_MAJOR_VERSION 2#define YY_FLEX_MINOR_VERSION 5/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */#ifdef c_plusplus#ifndef __cplusplus#define __cplusplus#endif#endif#ifdef __cplusplus#include <stdlib.h>#include <iostream>#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 16384typedef struct yy_buffer_state *YY_BUFFER_STATE;extern int yyleng;#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 { std::istream* 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 };/* 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_bufferstatic 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;#define yytext_ptr yytext#define YY_INTERACTIVE#include "FlexLexer.h"/* 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 83#define YY_END_OF_BUFFER 84static yyconst short int yy_accept[588] = { 0, 0, 0, 84, 83, 3, 2, 1, 6, 7, 83, 79, 83, 78, 78, 8, 9, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 4, 5, 79, 78, 78, 79, 79, 1, 0, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 76, 0,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0, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 0, 0, 0, 0, 17, 12, 48, 0, 0, 0, 0, 0, 0, 56, 0, 65, 0, 0, 0, 0, 0, 0, 0, 0, 71, 0, 0, 42, 0, 0, 0, 0, 0, 0, 15, 40, 0, 0, 41, 66, 0, 43, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 0, 38, 0, 51, 0, 29, 72, 0, 0, 0, 0, 0, 26, 0, 0, 0, 0, 0, 0, 73, 0, 32, 27, 25, 0, 70, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 44, 0, 0, 0, 68, 0, 0, 0, 0, 74, 0, 0, 69, 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, 4, 5, 6, 1, 1, 1, 1, 1, 1, 1, 7, 8, 9, 10, 11, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 15, 1, 1, 1, 1, 1, 16, 17, 18, 19, 20, 21, 22, 23, 24, 1, 1, 25, 26, 27, 28, 29, 1, 30, 31, 32, 33, 34, 35, 36, 37, 38, 1, 1, 1, 1, 39, 1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 1, 50, 51, 52, 53, 54, 1, 55, 56, 57, 58, 59, 60, 61, 62, 1, 63, 1, 64, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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[65] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } ;static yyconst short int yy_base[589] = { 0, 0, 0, 667, 668, 668, 668, 668, 668, 668, 55, 57, 655, 61, 67, 668, 668, 58, 60, 46, 69, 610, 634, 610, 610, 46, 617, 71, 55, 87, 102, 48, 612, 77, 619, 605, 69, 602, 612, 668, 668, 115, 135, 141, 145, 668, 668, 126, 668, 0, 637, 625, 617, 619, 630, 595, 598, 604, 591, 617, 612, 588, 603, 584, 621, 584, 585, 604, 585, 579, 614, 668, 589, 576, 588, 598, 575, 573, 31, 609, 610, 594, 80, 568, 598, 603, 60, 565, 97, 569, 576, 564, 578, 561, 589, 563, 564, 668, 568, 554, 555, 160, 130, 151, 0, 577, 586, 569, 587, 585, 562, 560, 563, 545, 569, 583, 545, 538, 541, 576, 538, 536, 573, 536, 544, 534, 542, 533, 566, 530, 528, 558, 534, 543, 565, 541, 536, 535, 537, 547, 141, 525, 530, 542, 517, 531, 524, 514, 524, 515, 508, 546, 521, 507, 518, 162, 164, 535, 544, 542, 519, 537, 512, 500, 499, 500, 529, 526, 500, 509, 491, 520, 494, 488, 519, 668, 490, 498, 488, 485, 518, 484, 511, 478, 491, 503, 668, 151, 514, 488, 474, 505, 511, 508, 483, 482, 477, 480, 468, 472, 477, 480, 463, 478, 489, 463, 471, 475, 474, 479, 480, 480, 454, 468, 489, 455, 466, 484, 463, 461, 443, 461, 459, 154, 668, 455, 440, 668, 448, 475, 450, 435, 442, 449, 466, 461, 466, 432, 431, 441, 464, 459, 454, 668, 429, 429, 157, 668, 435, 425, 434, 426, 425, 439, 413, 171, 441, 450, 446, 430, 668, 446, 414, 445, 434, 447, 401, 412, 410, 429, 408, 403, 413, 668, 668, 413, 425, 412, 403, 395, 394, 412, 422, 431, 407, 163, 668, 161, 421, 668, 668, 391, 400, 395, 410, 410, 173, 400, 415, 399, 407, 411, 410, 404, 413, 408, 410, 392, 398, 373, 377, 368, 401, 391, 668, 379, 668, 398, 377, 376, 377, 374, 378, 359, 358, 366, 365, 392, 391, 394, 349, 350, 354, 668, 389, 366, 354, 351, 358, 354, 338, 346, 354, 340, 377, 363, 350, 364, 359, 371, 371, 351, 368, 367, 362, 332, 331, 333, 344, 360, 348, 341, 668, 338, 320, 346, 343, 326, 325, 318, 318, 668, 668, 668, 330, 314, 336, 334, 335, 321, 308, 303, 307, 305, 317, 304, 314, 668, 320, 314, 332, 334, 333, 313, 331, 320, 668, 311, 290, 292, 296, 325, 323, 281, 322, 668, 301, 296, 302, 279, 283, 286, 283, 293, 288, 288, 310, 306, 668, 668, 668, 285, 271, 283, 179, 668, 297, 268, 308, 284, 295, 290, 668, 289, 299, 264, 668, 286, 668, 296, 261, 668, 262, 270, 283, 267, 260, 247, 278, 257, 266, 244, 283, 265, 262, 257, 250, 259, 254, 277, 256, 256, 263, 254, 268, 668, 668, 668, 249, 260, 245, 242, 239, 266, 668, 223, 668, 240, 239, 240, 224, 260, 259, 235, 226, 668, 225, 223, 668, 222, 242, 248, 240, 232, 214, 668, 668, 218, 212, 668, 668, 224, 668, 221, 206, 233, 668, 218, 243, 216, 216, 212, 233, 218, 231, 234, 209, 208, 207, 193, 668, 194, 217, 204, 193, 190, 200, 193, 204, 221, 202, 668, 195, 668, 196, 197, 192, 668, 668, 184, 194, 178, 188, 211, 668, 210, 177, 171, 175, 200, 174, 668, 193, 668, 668, 668, 193, 668, 176, 168, 180, 161, 174, 167, 173, 163, 159, 171, 168, 167, 167, 163, 150, 668, 668, 150, 165, 164, 668, 161, 146, 139, 106, 668, 79, 79, 668, 668, 92 } ;static yyconst short int yy_def[589] =
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -