expspec_yy_cpp-source.html
来自「一个tabu search算法框架」· HTML 代码 · 共 969 行 · 第 1/5 页
HTML
969 行
00763 <font class="comment">/* Report a fatal error. */</font>
00764 <font class="preprocessor">#ifndef YY_FATAL_ERROR</font>
00765 <font class="preprocessor"></font><font class="preprocessor">#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )</font>
00766 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00767 <font class="preprocessor"></font>
00768 <font class="comment">/* Default declaration of generated scanner - a define so the user can</font>
00769 <font class="comment"> * easily add parameters.</font>
00770 <font class="comment"> */</font>
00771 <font class="preprocessor">#ifndef YY_DECL</font>
00772 <font class="preprocessor"></font><font class="preprocessor">#define YY_DECL int yylex YY_PROTO(( void ))</font>
00773 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00774 <font class="preprocessor"></font>
00775 <font class="comment">/* Code executed at the beginning of each rule, after yytext and yyleng</font>
00776 <font class="comment"> * have been set up.</font>
00777 <font class="comment"> */</font>
00778 <font class="preprocessor">#ifndef YY_USER_ACTION</font>
00779 <font class="preprocessor"></font><font class="preprocessor">#define YY_USER_ACTION</font>
00780 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00781 <font class="preprocessor"></font>
00782 <font class="comment">/* Code executed at the end of each rule. */</font>
00783 <font class="preprocessor">#ifndef YY_BREAK</font>
00784 <font class="preprocessor"></font><font class="preprocessor">#define YY_BREAK break;</font>
00785 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00786 <font class="preprocessor"></font>
00787 <font class="preprocessor">#define YY_RULE_SETUP \</font>
00788 <font class="preprocessor"> YY_USER_ACTION</font>
00789 <font class="preprocessor"></font>
00790 YY_DECL
00791 {
00792 <font class="keyword">register</font> yy_state_type yy_current_state;
00793 <font class="keyword">register</font> <font class="keywordtype">char</font> *yy_cp, *yy_bp;
00794 <font class="keyword">register</font> <font class="keywordtype">int</font> yy_act;
00795
00796 <font class="preprocessor">#line 72 "ExpSpec.lex"</font>
00797 <font class="preprocessor"></font>
00798
00799 <font class="preprocessor">#line 800 "ExpSpec.yy.cpp"</font>
00800 <font class="preprocessor"></font>
00801 <font class="keywordflow">if</font> ( yy_init )
00802 {
00803 yy_init = 0;
00804
00805 <font class="preprocessor">#ifdef YY_USER_INIT</font>
00806 <font class="preprocessor"></font> YY_USER_INIT;
00807 <font class="preprocessor">#endif</font>
00808 <font class="preprocessor"></font>
00809 <font class="keywordflow">if</font> ( ! yy_start )
00810 yy_start = 1; <font class="comment">/* first start state */</font>
00811
00812 <font class="keywordflow">if</font> ( ! yyin )
00813 yyin = stdin;
00814
00815 <font class="keywordflow">if</font> ( ! yyout )
00816 yyout = stdout;
00817
00818 <font class="keywordflow">if</font> ( ! yy_current_buffer )
00819 yy_current_buffer =
00820 yy_create_buffer( yyin, YY_BUF_SIZE );
00821
00822 yy_load_buffer_state();
00823 }
00824
00825 <font class="keywordflow">while</font> ( 1 ) <font class="comment">/* loops until end-of-file is reached */</font>
00826 {
00827 yy_cp = yy_c_buf_p;
00828
00829 <font class="comment">/* Support of yytext. */</font>
00830 *yy_cp = yy_hold_char;
00831
00832 <font class="comment">/* yy_bp points to the position in yy_ch_buf of the start of</font>
00833 <font class="comment"> * the current run.</font>
00834 <font class="comment"> */</font>
00835 yy_bp = yy_cp;
00836
00837 yy_current_state = yy_start;
00838 yy_state_ptr = yy_state_buf;
00839 *yy_state_ptr++ = yy_current_state;
00840 yy_match:
00841 <font class="keywordflow">do</font>
00842 {
00843 <font class="keyword">register</font> YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
00844 <font class="keywordflow">while</font> ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
00845 {
00846 yy_current_state = (<font class="keywordtype">int</font>) yy_def[yy_current_state];
00847 <font class="keywordflow">if</font> ( yy_current_state >= 256 )
00848 yy_c = yy_meta[(<font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>) yy_c];
00849 }
00850 yy_current_state = yy_nxt[yy_base[yy_current_state] + (<font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>) yy_c];
00851 *yy_state_ptr++ = yy_current_state;
00852 ++yy_cp;
00853 }
00854 <font class="keywordflow">while</font> ( yy_base[yy_current_state] != 447 );
00855
00856 yy_find_action:
00857 yy_current_state = *--yy_state_ptr;
00858 yy_lp = yy_accept[yy_current_state];
00859 find_rule: <font class="comment">/* we branch to this label when backing up */</font>
00860 <font class="keywordflow">for</font> ( ; ; ) <font class="comment">/* until we find what rule we matched */</font>
00861 {
00862 <font class="keywordflow">if</font> ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
00863 {
00864 yy_act = yy_acclist[yy_lp];
00865 {
00866 yy_full_match = yy_cp;
00867 <font class="keywordflow">break</font>;
00868 }
00869 }
00870 --yy_cp;
00871 yy_current_state = *--yy_state_ptr;
00872 yy_lp = yy_accept[yy_current_state];
00873 }
00874
00875 YY_DO_BEFORE_ACTION;
00876
00877 <font class="keywordflow">if</font> ( yy_act != YY_END_OF_BUFFER )
00878 {
00879 <font class="keywordtype">int</font> yyl;
00880 <font class="keywordflow">for</font> ( yyl = 0; yyl < yyleng; ++yyl )
00881 <font class="keywordflow">if</font> ( yytext[yyl] == <font class="charliteral">'\n'</font> )
00882 ++yylineno;
00883 }
00884
00885 do_action: <font class="comment">/* This label is used only to access EOF actions. */</font>
00886
00887
00888 <font class="keywordflow">switch</font> ( yy_act )
00889 { <font class="comment">/* beginning of action switch */</font>
00890 <font class="keywordflow">case</font> 1:
00891 YY_RULE_SETUP
00892 <font class="preprocessor">#line 74 "ExpSpec.lex"</font>
00893 <font class="preprocessor"></font>comment_caller = YYSTATE; BEGIN(comment);
00894 YY_BREAK
00895
00896 <font class="keywordflow">case</font> 2:
00897 YY_RULE_SETUP
00898 <font class="preprocessor">#line 76 "ExpSpec.lex"</font>
00899 <font class="preprocessor"></font><font class="comment">/* eat anything but a `*' */</font>
00900 YY_BREAK
00901 <font class="keywordflow">case</font> 3:
00902 YY_RULE_SETUP
00903 <font class="preprocessor">#line 77 "ExpSpec.lex"</font>
00904 <font class="preprocessor"></font><font class="comment">/* eat the `*' not followed by a `/' */</font>
00905 YY_BREAK
00906 <font class="keywordflow">case</font> 4:
00907 YY_RULE_SETUP
00908 <font class="preprocessor">#line 78 "ExpSpec.lex"</font>
00909 <font class="preprocessor"></font>BEGIN(comment_caller); <font class="comment">/* restart from last environment */</font>
00910 YY_BREAK
00911
00912 <font class="keywordflow">case</font> 5:
00913 YY_RULE_SETUP
00914 <font class="preprocessor">#line 81 "ExpSpec.lex"</font>
00915 <font class="preprocessor"></font>BEGIN(instance); <font class="keywordflow">return</font> INSTANCE;
00916 YY_BREAK
00917
00918 <font class="keywordflow">case</font> 6:
00919 YY_RULE_SETUP
00920 <font class="preprocessor">#line 84 "ExpSpec.lex"</font>
00921 <font class="preprocessor"></font><font class="keywordflow">return</font> LOG_FILE;
00922 YY_BREAK
00923 <font class="keywordflow">case</font> 7:
00924 YY_RULE_SETUP
00925 <font class="preprocessor">#line 85 "ExpSpec.lex"</font>
00926 <font class="preprocessor"></font><font class="keywordflow">return</font> OUTPUT_PREFIX;
00927 YY_BREAK
00928 <font class="keywordflow">case</font> 8:
00929 YY_RULE_SETUP
00930 <font class="preprocessor">#line 86 "ExpSpec.lex"</font>
00931 <font class="preprocessor"></font><font class="keywordflow">return</font> PLOT_PREFIX;
00932 YY_BREAK
00933 <font class="keywordflow">case</font> 9:
00934 YY_RULE_SETUP
00935 <font class="preprocessor">#line 87 "ExpSpec.lex"</font>
00936 <font class="preprocessor"></font><font class="keywordflow">return</font> TRIALS;
00937 YY_BREAK
00938 <font class="keywordflow">case</font> 10:
00939 YY_RULE_SETUP
00940 <font class="preprocessor">#line 88 "ExpSpec.lex"</font>
00941 <font class="preprocessor"></font>BEGIN(runner); <font class="keywordflow">return</font> RUNNER;
00942 YY_BREAK
00943 <font class="keywordflow">case</font> 11:
00944 YY_RULE_SETUP
00945 <font class="preprocessor">#line 89 "ExpSpec.lex"</font>
00946 <font class="preprocessor"></font>{
00947 <font class="comment">/* end block, go back to the initial state */</font>
00948 BEGIN(INITIAL); <font class="keywordflow">return</font> EBLOCK;
00949 }
00950 YY_BREAK
00951
00952
00953 <font class="keywordflow">case</font> 12:
00954 YY_RULE_SETUP
00955 <font class="preprocesso
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?