expspec_yy_cpp-source.html

来自「一个tabu search算法框架」· HTML 代码 · 共 969 行 · 第 1/5 页

HTML
969
字号
00171 <font class="comment">         * each newline.</font>
00172 <font class="comment">         */</font>
00173         <font class="keywordtype">int</font> yy_is_interactive;
00174 
00175         <font class="comment">/* Whether we're considered to be at the beginning of a line.</font>
00176 <font class="comment">         * If so, '^' rules will be active on the next match, otherwise</font>
00177 <font class="comment">         * not.</font>
00178 <font class="comment">         */</font>
00179         <font class="keywordtype">int</font> yy_at_bol;
00180 
00181         <font class="comment">/* Whether to try to fill the input buffer when we reach the</font>
00182 <font class="comment">         * end of it.</font>
00183 <font class="comment">         */</font>
00184         <font class="keywordtype">int</font> yy_fill_buffer;
00185 
00186         <font class="keywordtype">int</font> yy_buffer_status;
00187 <font class="preprocessor">#define YY_BUFFER_NEW 0</font>
00188 <font class="preprocessor"></font><font class="preprocessor">#define YY_BUFFER_NORMAL 1</font>
00189 <font class="preprocessor"></font>        <font class="comment">/* When an EOF's been seen but there's still some text to process</font>
00190 <font class="comment">         * then we mark the buffer as YY_EOF_PENDING, to indicate that we</font>
00191 <font class="comment">         * shouldn't try reading from the input source any more.  We might</font>
00192 <font class="comment">         * still have a bunch of tokens to match, though, because of</font>
00193 <font class="comment">         * possible backing-up.</font>
00194 <font class="comment">         *</font>
00195 <font class="comment">         * When we actually see the EOF, we change the status to "new"</font>
00196 <font class="comment">         * (via yyrestart()), so that the user can continue scanning by</font>
00197 <font class="comment">         * just pointing yyin at a new input file.</font>
00198 <font class="comment">         */</font>
00199 <font class="preprocessor">#define YY_BUFFER_EOF_PENDING 2</font>
00200 <font class="preprocessor"></font>        };
00201 
00202 <font class="keyword">static</font> YY_BUFFER_STATE yy_current_buffer = 0;
00203 
00204 <font class="comment">/* We provide macros for accessing buffer states in case in the</font>
00205 <font class="comment"> * future we want to put the buffer states in a more general</font>
00206 <font class="comment"> * "scanner state".</font>
00207 <font class="comment"> */</font>
00208 <font class="preprocessor">#define YY_CURRENT_BUFFER yy_current_buffer</font>
00209 <font class="preprocessor"></font>
00210 
00211 <font class="comment">/* yy_hold_char holds the character lost when yytext is formed. */</font>
00212 <font class="keyword">static</font> <font class="keywordtype">char</font> yy_hold_char;
00213 
00214 <font class="keyword">static</font> <font class="keywordtype">int</font> yy_n_chars;          <font class="comment">/* number of characters read into yy_ch_buf */</font>
00215 
00216 
00217 <font class="keywordtype">int</font> yyleng;
00218 
00219 <font class="comment">/* Points to current character in buffer. */</font>
00220 <font class="keyword">static</font> <font class="keywordtype">char</font> *yy_c_buf_p = (<font class="keywordtype">char</font> *) 0;
00221 <font class="keyword">static</font> <font class="keywordtype">int</font> yy_init = 1;         <font class="comment">/* whether we need to initialize */</font>
00222 <font class="keyword">static</font> <font class="keywordtype">int</font> yy_start = 0;        <font class="comment">/* start state number */</font>
00223 
00224 <font class="comment">/* Flag which is used to allow yywrap()'s to do buffer switches</font>
00225 <font class="comment"> * instead of setting up a fresh yyin.  A bit of a hack ...</font>
00226 <font class="comment"> */</font>
00227 <font class="keyword">static</font> <font class="keywordtype">int</font> yy_did_buffer_switch_on_eof;
00228 
00229 <font class="keywordtype">void</font> yyrestart YY_PROTO(( FILE *input_file ));
00230 
00231 <font class="keywordtype">void</font> yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
00232 <font class="keywordtype">void</font> yy_load_buffer_state YY_PROTO(( <font class="keywordtype">void</font> ));
00233 YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, <font class="keywordtype">int</font> size ));
00234 <font class="keywordtype">void</font> yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
00235 <font class="keywordtype">void</font> yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
00236 <font class="keywordtype">void</font> yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
00237 <font class="preprocessor">#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )</font>
00238 <font class="preprocessor"></font>
00239 YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( <font class="keywordtype">char</font> *base, yy_size_t size ));
00240 YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst <font class="keywordtype">char</font> *yy_str ));
00241 YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst <font class="keywordtype">char</font> *bytes, <font class="keywordtype">int</font> len ));
00242 
00243 <font class="keyword">static</font> <font class="keywordtype">void</font> *yy_flex_alloc YY_PROTO(( yy_size_t ));
00244 <font class="keyword">static</font> <font class="keywordtype">void</font> *yy_flex_realloc YY_PROTO(( <font class="keywordtype">void</font> *, yy_size_t ));
00245 <font class="keyword">static</font> <font class="keywordtype">void</font> yy_flex_free YY_PROTO(( <font class="keywordtype">void</font> * ));
00246 
00247 <font class="preprocessor">#define yy_new_buffer yy_create_buffer</font>
00248 <font class="preprocessor"></font>
00249 <font class="preprocessor">#define yy_set_interactive(is_interactive) \</font>
00250 <font class="preprocessor">        { \</font>
00251 <font class="preprocessor">        if ( ! yy_current_buffer ) \</font>
00252 <font class="preprocessor">                yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \</font>
00253 <font class="preprocessor">        yy_current_buffer-&gt;yy_is_interactive = is_interactive; \</font>
00254 <font class="preprocessor">        }</font>
00255 <font class="preprocessor"></font>
00256 <font class="preprocessor">#define yy_set_bol(at_bol) \</font>
00257 <font class="preprocessor">        { \</font>
00258 <font class="preprocessor">        if ( ! yy_current_buffer ) \</font>
00259 <font class="preprocessor">                yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \</font>
00260 <font class="preprocessor">        yy_current_buffer-&gt;yy_at_bol = at_bol; \</font>
00261 <font class="preprocessor">        }</font>
00262 <font class="preprocessor"></font>
00263 <font class="preprocessor">#define YY_AT_BOL() (yy_current_buffer-&gt;yy_at_bol)</font>
00264 <font class="preprocessor"></font>
00265 
00266 <font class="preprocessor">#define YY_USES_REJECT</font>
00267 <font class="preprocessor"></font>
00268 <font class="preprocessor">#define yywrap() 1</font>
00269 <font class="preprocessor"></font><font class="preprocessor">#define YY_SKIP_YYWRAP</font>
00270 <font class="preprocessor"></font><font class="keyword">typedef</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> YY_CHAR;
00271 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
00272 <font class="keyword">typedef</font> <font class="keywordtype">int</font> yy_state_type;
00273 <font class="keyword">extern</font> <font class="keywordtype">int</font> yylineno;
00274 <font class="keywordtype">int</font> yylineno = 1;
00275 <font class="keyword">extern</font> <font class="keywordtype">char</font> *yytext;
00276 <font class="preprocessor">#define yytext_ptr yytext</font>
00277 <font class="preprocessor"></font>
00278 <font class="keyword">static</font> yy_state_type yy_get_previous_state YY_PROTO(( <font class="keywordtype">void</font> ));
00279 <font class="keyword">static</font> yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
00280 <font class="keyword">static</font> <font class="keywordtype">int</font> yy_get_next_buffer YY_PROTO(( <font class="keywordtype">void</font> ));
00281 <font class="keyword">static</font> <font class="keywordtype">void</font> yy_fatal_error YY_PROTO(( yyconst <font class="keywordtype">char</font> msg[] ));
00282 
00283 <font class="comment">/* Done after the current pattern has been matched and before the</font>
00284 <font class="comment"> * corresponding action - sets up yytext.</font>
00285 <font class="comment"> */</font>
00286 <font class="preprocessor">#define YY_DO_BEFORE_ACTION \</font>
00287 <font class="preprocessor">        yytext_ptr = yy_bp; \</font>
00288 <font class="preprocessor">        yyleng = (int) (yy_cp - yy_bp); \</font>
00289 <font class="preprocessor">        yy_hold_char = *yy_cp; \</font>
00290 <font class="preprocessor">        *yy_cp = '\0'; \</font>
00291 <font class="preprocessor">        yy_c_buf_p = yy_cp;</font>
00292 <font class="preprocessor"></font>
00293 <font class="preprocessor">#define YY_NUM_RULES 33</font>
00294 <font class="preprocessor"></font><font class="preprocessor">#define YY_END_OF_BUFFER 34</font>
00295 <font class="preprocessor"></font><font class="keyword">static</font> yyconst <font class="keywordtype">short</font> <font class="keywordtype">int</font> yy_acclist[214] =
00296     {   0,
00297         2,    2,   34,   32,   33,   30,   32,   33,   31,   33,
00298        29,   32,   33,   32,   33,   32,   33,   32,   33,   26,
00299        32,   33,   24,   32,   33,   28,   32,   33,   28,   32,
00300        33,   23,   32,   33,   28,   32,   33,   28,   32,   33,
00301        28,   32,   33,   28,   32,   33,   28,   32,   33,   11,
00302        32,   33,   28,   32,   33,   28,   32,   33,   28,   32,
00303        33,   28,   32,   33,   28,   32,   33,   28,   32,   33,
00304        22,   32,   33,    2,   32,   33,    2,   30,   32,   33,
00305         2,   29,   32,   33,    2,   32,   33,    3,   32,   33,
00306         2,   32,   33,    2,   32,   33,    2,   26,   32,   33,
00307 
00308         2,   24,   32,   33,    2,   28,   32,   33,    2,   23,
00309        32,   33,   27,    1,   26,   28,   28,   28,   28,   28,
00310        28,   28,   28,   28,   28,   28,   28,   28,   28,   28,
00311        28,    2,    2,    3,    3,    4,    2,   27,    2,    2,
00312        26,    2,   28,    2,   28,   25,   28,   28,   28,   28,
00313        28,   28,   28,   28,   28,   28,   28,   28,   28,   28,
00314         2,   25,   28,   28,   28,   28,   28,   28,   28,   28,
00315        28,   28,   28,   28,   28,   28,   28,   28,   28,   28,
00316        28,   28,   28,   10,   28,   28,   28,   28,   28,   28,
00317         9,   28,   28,   28,    5,   28,   28,   28,    6,   28,
00318 
00319        28,   13,    8,   20,   12,    7,   15,   17,   18,   21,
00320        19,   16,   14
00321     } ;
00322 
00323 <font class="keyword">static</font> yyconst <font class="keywordtype">short</font> <font class="keywordtype">int</font> yy_accept[257] =
00324     {   0,
00325         1,    1,    1,    1,    1,    1,    1,    2,    3,    4,
00326         6,    9,   11,   14,   16,   18,   20,   23,   26,   29,
00327        32,   35,   38,   41,   44,   47,   50,   53,   56,   59,
00328        62,   65,   68,   71,   74,   77,   81,   85,   88,   91,
00329        94,   97,  101,  105,  109,  113,  113,  114,  115,  115,
00330       116,  117,  118,  119,  120,  121,  122,  123,  124,  125,
00331       126,  127,  128,  129,  130,  131,  132,  133,  134,  135,
00332       136,  137,  139,  140,  142,  144,  146,  147,  148,  149,
00333       150,  151,  152,  153,  154,  155,  156,  157,  158,  159,
00334       160,  161,  163,  164,  164,  165,  166,  167,  168,  169,
00335 
00336       170,  170,  170,  171,  172,  173,  174,  175,  175,  176,
00337       176,  177,  178,  179,  179,  179,  179,  179,  180,  181,
00338       182,  182,  183,  183,  184,  184,  186,  187,  188,  188,
00339       188,  188,  188,  188,  189,  190,  190,  190,  191,  191,
00340       191,  191,  192,  193,  193,  193,  193,  193,  193,  194,
00341       195,  195,  195,  197,  197,  197,  197,  197,  197,  197,
00342       197,  197,  197,  198,  199,  199,  199,  200,  200,  200,
00343       200,  200,  200,  200,  200,  200,  201,  202,  202,  202,
00344       202,  202,  202,  202,  202,  202,  202,  202,  202,  202,
00345       202,  202,  202,  202,  202,  202,  202,  202,  202,  202,
00346 
00347       202,  202,  202,  203,  203,  204,  204,  204,  204,  204,
00348       204,  204,  204,  204,  204,  204,  205,  206,  206,  206,
00349       206,  206,  206,  206,  206,  207,  207,  208,  208,  208,
00350       208,  208,  208,  208,  208,  208,  208,  208,  208,  208,
00351       209,  210,  210,  210,  210,  210,  210,  210,  210,  210,
00352       211,  211,  212,  213,  214,  214
00353     } ;
00354 
00355 <font class="keyword">static</font> yyconst <font class="keywordtype">int</font> yy_ec[256] =
00356     {   0,
00357         1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
00358         1,    1,    4,    1,    1,    1,    1,    1,    1,    1,
00359         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
00360         1,    5,    1,    6,    1,    1,    1,    1,    1,    1,
00361         1,    7,    1,    1,    8,    9,   10,   11,   11,   11,
00362        11,   11,   11,   11,   11,   11,   11,   12,   13,    1,
00363         1,    1,    1,    1,   14,   14,   14,   14,   14,   14,
00364        14,   14,   15,   14,   14,   16,   14,   14,   17,   18,

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?