📄 mql.flex.cpp
字号:
#line 2 "MQL.flex.cpp"/* A lexical scanner generated by flex *//* Scanner skeleton version: * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $ */#define FLEX_SCANNER#define YY_FLEX_MAJOR_VERSION 2#define YY_FLEX_MINOR_VERSION 5/* 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>using namespace std;/* 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 { 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 89#define YY_END_OF_BUFFER 90static yyconst short int yy_accept[264] = { 0, 0, 0, 90, 88, 86, 85, 87, 66, 88, 59, 53, 62, 63, 57, 56, 75, 55, 76, 58, 80, 61, 67, 60, 68, 79, 77, 78, 52, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 64, 54, 65, 74, 0, 83, 0, 51, 81, 0, 82, 80, 71, 69, 73, 70, 72, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 14, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 50, 0, 84, 81, 79, 79, 79, 79, 79, 79, 79, 2, 13, 79, 79, 79, 28, 79, 43, 79, 5, 27, 79, 3, 79, 79, 79, 79, 79, 21, 1, 79, 22, 79, 79, 24, 79, 23, 25, 79, 11, 79, 79, 79, 15, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 7, 79, 79, 17, 79, 79, 79, 79, 12, 79, 79, 79, 8, 79, 79, 79, 10, 79, 79, 16, 79, 79, 79, 79, 4, 79, 79, 79, 79, 79, 19, 79, 79, 6, 20, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 9, 79, 33, 32, 35, 34, 79, 79, 79, 79, 79, 79, 18, 30, 79, 79, 31, 41, 79, 44, 79, 45, 46, 79, 79, 79, 79, 40, 79, 79, 79, 26, 79, 29, 79, 79, 79, 79, 49, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 42, 79, 79, 79, 79, 79, 79, 47, 48, 37, 79, 79, 36, 39, 38, 0 } ;static yyconst int yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 2, 2, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 5, 6, 1, 1, 7, 8, 1, 9, 10, 11, 12, 13, 14, 15, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 18, 19, 20, 21, 1, 1, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 24, 25, 26, 27, 1, 28, 29, 30, 31, 32, 33, 34, 35, 36, 22, 37, 38, 39, 40, 41, 42, 22, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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[55] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1 } ;static yyconst short int yy_base[267] = { 0, 0, 0, 281, 282, 282, 282, 282, 260, 49, 282, 271, 282, 282, 282, 282, 282, 282, 261, 261, 41, 282, 40, 256, 41, 0, 282, 282, 282, 27, 232, 33, 35, 28, 40, 242, 46, 232, 39, 51, 52, 244, 230, 235, 282, 216, 282, 282, 78, 282, 265, 282, 250, 263, 248, 52, 282, 282, 282, 282, 282, 0, 223, 220, 226, 233, 228, 223, 50, 220, 213, 210, 211, 212, 212, 209, 206, 0, 205, 215, 47, 212, 203, 201, 205, 198, 213, 202, 198, 200, 203, 202, 282, 234, 282, 219, 191, 206, 193, 192, 203, 192, 184, 0, 0, 201, 198, 194, 0, 184, 0, 197, 0, 0, 196, 0, 182, 186, 174, 185, 178, 0, 0, 55, 0, 186, 178, 0, 165, 0, 0, 177, 0, 177, 68, 174, 0, 168, 67, 181, 164, 181, 164, 179, 174, 164, 173, 0, 170, 174, 0, 160, 168, 157, 165, 0, 160, 163, 166, 155, 163, 151, 65, 0, 156, 144, 0, 76, 142, 156, 145, 0, 141, 146, 153, 142, 153, 0, 68, 73, 0, 0, 133, 139, 80, 142, 137, 144, 132, 137, 128, 139, 134, 0, 140, 0, 0, 0, 0, 135, 123, 118, 126, 114, 128, 0, 0, 117, 134, 0, 0, 124, 0, 128, 132, 131, 125, 115, 113, 114, 0, 110, 111, 110, 0, 110, 0, 119, 104, 114, 113, 0, 113, 112, 110, 109, 114, 110, 95, 94, 83, 92, 104, 103, 94, 103, 91, 96, 0, 79, 78, 77, 78, 70, 67, 0, 0, 0, 65, 34, 0, 0, 0, 282, 128, 61, 130 } ;static yyconst short int yy_def[267] = { 0, 263, 1, 263, 263, 263, 263, 263, 263, 264, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 265, 263, 263, 263, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 263, 263, 263, 263, 264, 263, 264, 263, 263, 266, 263, 263, 263, 263, 263, 263, 263, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 263, 266, 263, 263, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 0, 263, 263, 263 } ;static yyconst short int yy_nxt[337] = { 0, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 4, 27, 28, 25, 29, 30, 31, 32, 33, 34, 35, 25, 36, 25, 37, 25, 25, 25, 38, 39, 40, 41, 25, 42, 43, 25, 25, 25, 44, 45, 46, 49, 54, 62, 55, 56, 57, 59, 60, 61, 69, 67, 72, 54, 262, 55, 63, 64, 65, 50, 68, 70, 71, 73, 74, 77, 80, 75, 81, 83, 49, 82, 78, 84, 87, 114, 102, 145, 85, 86, 103, 115, 152, 88, 156, 178, 195, 146, 50, 179, 182, 197, 153, 261, 201, 260, 259, 157, 183, 196, 244, 184, 202, 258, 198, 245, 185, 257, 186, 256, 255, 246, 254, 253, 247, 48, 48, 93, 93, 252, 251, 250, 249, 248, 243, 242, 241, 240, 239, 238, 237, 236, 235, 234, 233, 232, 231, 230, 229, 228, 227, 226, 225, 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 209, 208, 207, 206, 205, 204, 203, 200, 199, 194, 193, 192, 191, 190, 189, 188, 187, 181, 180, 177, 176, 175, 174, 173, 172, 171, 170, 169, 168, 167, 166, 165, 164, 163, 162, 161, 160, 159, 158, 155, 154, 151, 150, 149, 148, 147, 144, 143, 142, 141, 140, 139, 138, 137, 136, 135, 134, 133, 132, 131, 130, 129, 128, 127, 95, 94, 126, 125, 124, 123, 122, 121, 120, 119, 118, 117, 116, 113, 112, 111, 110, 109, 108, 107, 106, 105, 104, 101, 100, 99, 98, 97, 96, 95, 94, 52, 263, 92, 91, 90, 89, 79, 76, 66, 58, 53, 52, 51, 47, 263, 3, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263 } ;static yyconst short int yy_chk[337] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 20, 29, 20, 22, 22, 24, 24, 265, 32, 31, 33, 55, 259, 55, 29, 29, 29, 9, 31, 32, 32, 33, 34, 36, 38, 34, 38, 39, 48, 38, 36, 39, 40, 80, 68, 123, 39, 39, 68, 80, 134, 40, 138, 162, 178, 123, 48, 162, 167, 179, 134, 258, 184, 254, 253, 138, 167, 178, 240, 167, 184, 252, 179, 240, 167, 251, 167, 250, 249, 240, 247, 246, 240, 264, 264, 266, 266, 245, 244, 243, 242, 241, 239, 238, 237, 236, 235, 234, 233, 232, 230, 229, 228, 227, 225, 223, 222, 221, 219, 218, 217, 216, 215, 214, 213, 211, 208, 207, 204, 203, 202, 201, 200, 199, 194, 192, 191, 190, 189, 188, 187, 186, 185, 183, 182, 176, 175, 174, 173, 172, 170, 169, 168, 165, 164, 161, 160, 159, 158, 157, 156, 154, 153, 152, 151, 149, 148, 146, 145, 144, 143, 142, 141, 140, 139, 137, 135, 133, 131, 128, 126, 125, 120, 119, 118, 117, 116, 114, 111, 109, 107, 106, 105, 102, 101, 100, 99, 98, 97, 96, 95, 93, 91, 90, 89, 88, 87, 86, 85, 84, 83, 82, 81, 79, 78, 76, 75, 74, 73, 72, 71, 70, 69, 67, 66, 65, 64, 63, 62, 54, 53, 52, 50, 45, 43, 42, 41, 37, 35, 30, 23, 19, 18, 11, 8, 3, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263 } ;/* 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#line 1 "MQL.lex"#define INITIAL 0#line 5 "MQL.lex"/******************************************************************************Meridian prototype distributionCopyright (C) 2005 Bernard WongThis program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public Licenseas published by the Free Software Foundation; either version 2of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.The copyright owner can be contacted by e-mail at bwong@cs.cornell.edu*******************************************************************************/using namespace std;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -