⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 expspec_tab_cpp-source.html

📁 一个tabu search算法框架
💻 HTML
📖 第 1 页 / 共 5 页
字号:
00353 <font class="preprocessor">    }                                                           \</font>
00354 <font class="preprocessor">  else                                                          \</font>
00355 <font class="preprocessor">    { yyerror ("syntax error: cannot back up"); YYERROR; }      \</font>
00356 <font class="preprocessor">while (0)</font>
00357 <font class="preprocessor"></font>
00358 <font class="preprocessor">#define YYTERROR        1</font>
00359 <font class="preprocessor"></font><font class="preprocessor">#define YYERRCODE       256</font>
00360 <font class="preprocessor"></font>
00361 <font class="preprocessor">#ifndef YYPURE</font>
00362 <font class="preprocessor"></font><font class="preprocessor">#define YYLEX           yylex()</font>
00363 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00364 <font class="preprocessor"></font>
00365 <font class="preprocessor">#ifdef YYPURE</font>
00366 <font class="preprocessor"></font><font class="preprocessor">#ifdef YYLSP_NEEDED</font>
00367 <font class="preprocessor"></font><font class="preprocessor">#ifdef YYLEX_PARAM</font>
00368 <font class="preprocessor"></font><font class="preprocessor">#define YYLEX           yylex(&amp;yylval, &amp;yylloc, YYLEX_PARAM)</font>
00369 <font class="preprocessor"></font><font class="preprocessor">#else</font>
00370 <font class="preprocessor"></font><font class="preprocessor">#define YYLEX           yylex(&amp;yylval, &amp;yylloc)</font>
00371 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00372 <font class="preprocessor"></font><font class="preprocessor">#else </font><font class="comment">/* not YYLSP_NEEDED */</font>
00373 <font class="preprocessor">#ifdef YYLEX_PARAM</font>
00374 <font class="preprocessor"></font><font class="preprocessor">#define YYLEX           yylex(&amp;yylval, YYLEX_PARAM)</font>
00375 <font class="preprocessor"></font><font class="preprocessor">#else</font>
00376 <font class="preprocessor"></font><font class="preprocessor">#define YYLEX           yylex(&amp;yylval)</font>
00377 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00378 <font class="preprocessor"></font><font class="preprocessor">#endif </font><font class="comment">/* not YYLSP_NEEDED */</font>
00379 <font class="preprocessor">#endif</font>
00380 <font class="preprocessor"></font>
00381 <font class="comment">/* If nonreentrant, generate the variables here */</font>
00382 
00383 <font class="preprocessor">#ifndef YYPURE</font>
00384 <font class="preprocessor"></font>
00385 <font class="keywordtype">int</font>     yychar;                 <font class="comment">/*  the lookahead symbol                */</font>
00386 YYSTYPE yylval;                 <font class="comment">/*  the semantic value of the           */</font>
00387                                 <font class="comment">/*  lookahead symbol                    */</font>
00388 
00389 <font class="preprocessor">#ifdef YYLSP_NEEDED</font>
00390 <font class="preprocessor"></font>YYLTYPE yylloc;                 <font class="comment">/*  location data for the lookahead     */</font>
00391                                 <font class="comment">/*  symbol                              */</font>
00392 <font class="preprocessor">#endif</font>
00393 <font class="preprocessor"></font>
00394 <font class="keywordtype">int</font> yynerrs;                    <font class="comment">/*  number of parse errors so far       */</font>
00395 <font class="preprocessor">#endif  </font><font class="comment">/* not YYPURE */</font>
00396 
00397 <font class="preprocessor">#if YYDEBUG != 0</font>
00398 <font class="preprocessor"></font><font class="keywordtype">int</font> yydebug;                    <font class="comment">/*  nonzero means print parse trace     */</font>
00399 <font class="comment">/* Since this is uninitialized, it does not stop multiple parsers</font>
00400 <font class="comment">   from coexisting.  */</font>
00401 <font class="preprocessor">#endif</font>
00402 <font class="preprocessor"></font>
00403 <font class="comment">/*  YYINITDEPTH indicates the initial size of the parser's stacks       */</font>
00404 
00405 <font class="preprocessor">#ifndef YYINITDEPTH</font>
00406 <font class="preprocessor"></font><font class="preprocessor">#define YYINITDEPTH 200</font>
00407 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00408 <font class="preprocessor"></font>
00409 <font class="comment">/*  YYMAXDEPTH is the maximum size the stacks can grow to</font>
00410 <font class="comment">    (effective only if the built-in stack extension method is used).  */</font>
00411 
00412 <font class="preprocessor">#if YYMAXDEPTH == 0</font>
00413 <font class="preprocessor"></font><font class="preprocessor">#undef YYMAXDEPTH</font>
00414 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00415 <font class="preprocessor"></font>
00416 <font class="preprocessor">#ifndef YYMAXDEPTH</font>
00417 <font class="preprocessor"></font><font class="preprocessor">#define YYMAXDEPTH 10000</font>
00418 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00419 <font class="preprocessor"></font>
00420 <font class="comment">/* Define __yy_memcpy.  Note that the size argument</font>
00421 <font class="comment">   should be passed with type unsigned int, because that is what the non-GCC</font>
00422 <font class="comment">   definitions require.  With GCC, __builtin_memcpy takes an arg</font>
00423 <font class="comment">   of type size_t, but it can handle unsigned int.  */</font>
00424 
00425 <font class="preprocessor">#if __GNUC__ &gt; 1                </font><font class="comment">/* GNU C and GNU C++ define this.  */</font>
00426 <font class="preprocessor">#define __yy_memcpy(TO,FROM,COUNT)      __builtin_memcpy(TO,FROM,COUNT)</font>
00427 <font class="preprocessor"></font><font class="preprocessor">#else                           </font><font class="comment">/* not GNU C or C++ */</font>
00428 <font class="preprocessor">#ifndef __cplusplus</font>
00429 <font class="preprocessor"></font>
00430 <font class="comment">/* This is the most reliable way to avoid incompatibilities</font>
00431 <font class="comment">   in available built-in functions on various systems.  */</font>
00432 <font class="keyword">static</font> <font class="keywordtype">void</font>
00433 __yy_memcpy (to, from, count)
00434      <font class="keywordtype">char</font> *to;
00435      <font class="keywordtype">char</font> *from;
00436      <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> count;
00437 {
00438   <font class="keyword">register</font> <font class="keywordtype">char</font> *f = from;
00439   <font class="keyword">register</font> <font class="keywordtype">char</font> *t = to;
00440   <font class="keyword">register</font> <font class="keywordtype">int</font> i = count;
00441 
00442   <font class="keywordflow">while</font> (i-- &gt; 0)
00443     *t++ = *f++;
00444 }
00445 
00446 <font class="preprocessor">#else </font><font class="comment">/* __cplusplus */</font>
00447 
00448 <font class="comment">/* This is the most reliable way to avoid incompatibilities</font>
00449 <font class="comment">   in available built-in functions on various systems.  */</font>
00450 <font class="keyword">static</font> <font class="keywordtype">void</font>
00451 __yy_memcpy (<font class="keywordtype">char</font> *to, <font class="keywordtype">char</font> *from, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> count)<font class="keyword"></font>
00452 <font class="keyword"></font>{
00453   <font class="keyword">register</font> <font class="keywordtype">char</font> *t = to;
00454   <font class="keyword">register</font> <font class="keywordtype">char</font> *f = from;
00455   <font class="keyword">register</font> <font class="keywordtype">int</font> i = count;
00456 
00457   <font class="keywordflow">while</font> (i-- &gt; 0)
00458     *t++ = *f++;
00459 }
00460 
00461 <font class="preprocessor">#endif</font>
00462 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00463 <font class="preprocessor"></font>
00464 <font class="preprocessor">#line 217 "/usr/share/bison.simple"</font>
00465 <font class="preprocessor"></font>
00466 <font class="comment">/* The user can define YYPARSE_PARAM as the name of an argument to be passed</font>
00467 <font class="comment">   into yyparse.  The argument should have type void *.</font>
00468 <font class="comment">   It should actually point to an object.</font>
00469 <font class="comment">   Grammar actions can access the variable by casting it</font>
00470 <font class="comment">   to the proper pointer type.  */</font>
00471 
00472 <font class="preprocessor">#ifdef YYPARSE_PARAM</font>
00473 <font class="preprocessor"></font><font class="preprocessor">#ifdef __cplusplus</font>
00474 <font class="preprocessor"></font><font class="preprocessor">#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM</font>
00475 <font class="preprocessor"></font><font class="preprocessor">#define YYPARSE_PARAM_DECL</font>
00476 <font class="preprocessor"></font><font class="preprocessor">#else </font><font class="comment">/* not __cplusplus */</font>
00477 <font class="preprocessor">#define YYPARSE_PARAM_ARG YYPARSE_PARAM</font>
00478 <font class="preprocessor"></font><font class="preprocessor">#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;</font>
00479 <font class="preprocessor"></font><font class="preprocessor">#endif </font><font class="comment">/* not __cplusplus */</font>
00480 <font class="preprocessor">#else </font><font class="comment">/* not YYPARSE_PARAM */</font>
00481 <font class="preprocessor">#define YYPARSE_PARAM_ARG</font>
00482 <font class="preprocessor"></font><font class="preprocessor">#define YYPARSE_PARAM_DECL</font>
00483 <font class="preprocessor"></font><font class="preprocessor">#endif </font><font class="comment">/* not YYPARSE_PARAM */</font>
00484 
00485 <font class="comment">/* Prevent warning if -Wstrict-prototypes.  */</font>
00486 <font class="preprocessor">#ifdef __GNUC__</font>
00487 <font class="preprocessor"></font><font class="preprocessor">#ifdef YYPARSE_PARAM</font>
00488 <font class="preprocessor"></font><font class="keywordtype">int</font> <a class="code" href="EasyLocal_h.html#a4">yyparse</a> (<font class="keywordtype">void</font> *);
00489 <font class="preprocessor">#else</font>
00490 <font class="preprocessor"></font><font class="keywordtype">int</font> <a class="code" href="EasyLocal_h.html#a4">yyparse</a> (<font class="keywordtype">void</font>);
00491 <font class="preprocessor">#endif</font>
00492 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00493 <font class="preprocessor"></font>
00494 <font class="keywordtype">int</font>
00495 <a class="code" href="EasyLocal_h.html#a4">yyparse</a>(YYPARSE_PARAM_ARG)
00496      YYPARSE_PARAM_DECL
00497 {
00498   <font class="keyword">register</font> <font class="keywordtype">int</font> yystate;
00499   <font class="keyword">register</font> <font class="keywordtype">int</font> yyn;
00500   <font class="keyword">register</font> <font class="keywordtype">short</font> *yyssp;
00501   <font class="keyword">register</font> YYSTYPE *yyvsp;
00502   <font class="keywordtype">int</font> yyerrstatus;      <font class="comment">/*  number of tokens to shift before error messages enabled */</font>
00503   <font class="keywordtype">int</font> yychar1 = 0;              <font class="comment">/*  lookahead token as an internal (translated) token number */</font>
00504 
00505   <font class="keywordtype">short</font> yyssa[YYINITDEPTH];     <font class="comment">/*  the state stack                     */</font>
00506   YYSTYPE yyvsa[YYINITDEPTH];   <font class="comment">/*  the semantic value stack            */</font>
00507 
00508   <font class="keywordtype">short</font> *yyss = yyssa;          <font class="comment">/*  refer to the stacks thru separate pointers */</font>
00509   YYSTYPE *yyvs = yyvsa;        <font class="comment">/*  to allow yyoverflow to reallocate them elsewhere */</font>
00510 
00511 <font class="preprocessor">#ifdef YYLSP_NEEDED</font>
00512 <font class="preprocessor"></font>  YYLTYPE yylsa[YYINITDEPTH];   <font class="comment">/*  the location stack                  */</font>
00513   YYLTYPE *yyls = yylsa;
00514   YYLTYPE *yylsp;
00515 
00516 <font class="preprocessor">#define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)</font>
00517 <font class="preprocessor"></font><font class="preprocessor">#else</font>
00518 <font class="preprocessor"></font><font class="preprocessor">#define YYPOPSTACK   (yyvsp--, yyssp--)</font>
00519 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00520 <font class="preprocessor"></font>
00521   <font class="keywordtype">int</font> yystacksize = YYINITDEPTH;
00522   <font class="keywordtype">int</font> yyfree_stacks = 0;
00523 
00524 <font class="preprocessor">#ifdef YYPURE</font>
00525 <font class="preprocessor"></font>  <font class="keywordtype">int</font> yychar;
00526   YYSTYPE yylval;
00527   <font class="keywordtype">int</font> yynerrs;
00528 <font class="preprocessor">#ifdef YYLSP_NEEDED</font>
00529 <font class="preprocessor"></font>  YYLTYPE yylloc;
00530 <font class="preprocessor">#endif</font>
00531 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00532 <font class="preprocessor"></font>
00533   YYSTYPE yyval;                <font class="comment">/*  the variable used to return         */</font>
00534                                 <font class="comment">/*  semantic values from the action     */</font>
00535                                 <font class="comment">/*  routines                            */</font>
00536 
00537   <font class="keywordtype">int</font> yylen;
00538 
00539 <font class="preprocessor">#if YYDEBUG != 0</font>
00540 <font class="preprocessor"></font>  <font class="keywordflow">if</font> (yydebug)

⌨️ 快捷键说明

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