00001
00002 #include "MTAnisoGAConfParser.hpp"
00003 #include <antlr/NoViableAltException.hpp>
00004 #include <antlr/SemanticException.hpp>
00005 #include <antlr/ASTFactory.hpp>
00006 #line 1 "MTAnisoGAConf.g"
00007 #line 8 "MTAnisoGAConfParser.cpp"
00008 MTAnisoGAConfParser::MTAnisoGAConfParser(antlr::TokenBuffer& tokenBuf, int k)
00009 : antlr::LLkParser(tokenBuf,k)
00010 {
00011 }
00012
00013 MTAnisoGAConfParser::MTAnisoGAConfParser(antlr::TokenBuffer& tokenBuf)
00014 : antlr::LLkParser(tokenBuf,10)
00015 {
00016 }
00017
00018 MTAnisoGAConfParser::MTAnisoGAConfParser(antlr::TokenStream& lexer, int k)
00019 : antlr::LLkParser(lexer,k)
00020 {
00021 }
00022
00023 MTAnisoGAConfParser::MTAnisoGAConfParser(antlr::TokenStream& lexer)
00024 : antlr::LLkParser(lexer,10)
00025 {
00026 }
00027
00028 MTAnisoGAConfParser::MTAnisoGAConfParser(const antlr::ParserSharedInputState& state)
00029 : antlr::LLkParser(state,10)
00030 {
00031 }
00032
00033 void MTAnisoGAConfParser::configentry() {
00034
00035 try {
00036 {
00037 switch ( LA(1)) {
00038 case VERBOSET:
00039 {
00040 match(VERBOSET);
00041 match(EQUAL);
00042 verbose=boolvalue();
00043 break;
00044 }
00045 case MTFITEXPONENTT:
00046 {
00047 match(MTFITEXPONENTT);
00048 match(EQUAL);
00049 mtfitexponent=numvalue();
00050 break;
00051 }
00052 case POPSIZET:
00053 {
00054 match(POPSIZET);
00055 match(EQUAL);
00056 popsize=numvalue();
00057 break;
00058 }
00059 case INITTEMPT:
00060 {
00061 match(INITTEMPT);
00062 match(EQUAL);
00063 inittemp=numvalue();
00064 break;
00065 }
00066 case COOLINGRATIOT:
00067 {
00068 match(COOLINGRATIOT);
00069 match(EQUAL);
00070 coolingratio=numvalue();
00071 break;
00072 }
00073 case GENERATIONST:
00074 {
00075 match(GENERATIONST);
00076 match(EQUAL);
00077 generations=numvalue();
00078 break;
00079 }
00080 case MUTATIONPROBT:
00081 {
00082 match(MUTATIONPROBT);
00083 match(EQUAL);
00084 mutationprob=numvalue();
00085 break;
00086 }
00087 case CROSSOVERPROBT:
00088 {
00089 match(CROSSOVERPROBT);
00090 match(EQUAL);
00091 crossoverprob=numvalue();
00092 break;
00093 }
00094 case THREADST:
00095 {
00096 match(THREADST);
00097 match(EQUAL);
00098 threads=numvalue();
00099 break;
00100 }
00101 case STARTTIMET:
00102 {
00103 match(STARTTIMET);
00104 match(EQUAL);
00105 starttime=numvalue();
00106 break;
00107 }
00108 case ENDTIMET:
00109 {
00110 match(ENDTIMET);
00111 match(EQUAL);
00112 endtime=numvalue();
00113 break;
00114 }
00115 case TENSORERRORT:
00116 {
00117 match(TENSORERRORT);
00118 match(EQUAL);
00119 tensorerror=numvalue();
00120 break;
00121 }
00122 case RESERRORT:
00123 {
00124 match(RESERRORT);
00125 match(EQUAL);
00126 reserror=numvalue();
00127 break;
00128 }
00129 case PHASEERRORT:
00130 {
00131 match(PHASEERRORT);
00132 match(EQUAL);
00133 phaseerror=numvalue();
00134 break;
00135 }
00136 case GATYPET:
00137 {
00138 match(GATYPET);
00139 match(EQUAL);
00140 gatype=stringvalue();
00141 break;
00142 }
00143 case OUTPUTBASET:
00144 {
00145 match(OUTPUTBASET);
00146 match(EQUAL);
00147 outputbase=stringvalue();
00148 break;
00149 }
00150 case MODET:
00151 {
00152 match(MODET);
00153 match(EQUAL);
00154 mode=stringvalue();
00155 break;
00156 }
00157 case MTFITT:
00158 {
00159 match(MTFITT);
00160 match(EQUAL);
00161 mtfit=stringvalue();
00162 break;
00163 }
00164 case MTINPUTDATAT:
00165 {
00166 match(MTINPUTDATAT);
00167 match(EQUAL);
00168 mtinputdata=stringvalue();
00169 break;
00170 }
00171 case PTENSORDATAT:
00172 {
00173 match(PTENSORDATAT);
00174 match(EQUAL);
00175 ptensordata=stringvalue();
00176 break;
00177 }
00178 case ANNEALINGGENERATIONT:
00179 {
00180 match(ANNEALINGGENERATIONT);
00181 match(EQUAL);
00182 annealinggeneration=numvalue();
00183 break;
00184 }
00185 case ELITISTT:
00186 {
00187 match(ELITISTT);
00188 match(EQUAL);
00189 elitist=boolvalue();
00190 break;
00191 }
00192 case THICKBASET:
00193 {
00194 match(THICKBASET);
00195 match(EQUAL);
00196 if ( inputState->guessing==0 ) {
00197 #line 87 "MTAnisoGAConf.g"
00198 i = 0; dtemp = 0; stemp = ""; btemp = false;
00199 #line 200 "MTAnisoGAConfParser.cpp"
00200 }
00201 {
00202 int _cnt92=0;
00203 for (;;) {
00204 if ((LA(1) == NUMBER)) {
00205 dtemp=numvalue();
00206 if ( inputState->guessing==0 ) {
00207 #line 88 "MTAnisoGAConf.g"
00208 if (i < thickbase.size()) {thickbase.at(i) = dtemp;} else{thickbase.push_back(dtemp);}++i;
00209 #line 210 "MTAnisoGAConfParser.cpp"
00210 }
00211 }
00212 else {
00213 if ( _cnt92>=1 ) { goto _loop92; } else {throw antlr::NoViableAltException(LT(1), getFilename());}
00214 }
00215
00216 _cnt92++;
00217 }
00218 _loop92:;
00219 }
00220 break;
00221 }
00222 case THICKSTEPT:
00223 {
00224 match(THICKSTEPT);
00225 match(EQUAL);
00226 if ( inputState->guessing==0 ) {
00227 #line 89 "MTAnisoGAConf.g"
00228 i = 0; dtemp = 0; stemp = ""; btemp = false;
00229 #line 230 "MTAnisoGAConfParser.cpp"
00230 }
00231 {
00232 int _cnt98=0;
00233 for (;;) {
00234 if ((LA(1) == NUMBER)) {
00235 dtemp=numvalue();
00236 if ( inputState->guessing==0 ) {
00237 #line 90 "MTAnisoGAConf.g"
00238 if (i < thickstep.size()) {thickstep.at(i) = dtemp;} else{thickstep.push_back(dtemp);}++i;
00239 #line 240 "MTAnisoGAConfParser.cpp"
00240 }
00241 }
00242 else {
00243 if ( _cnt98>=1 ) { goto _loop98; } else {throw antlr::NoViableAltException(LT(1), getFilename());}
00244 }
00245
00246 _cnt98++;
00247 }
00248 _loop98:;
00249 }
00250 break;
00251 }
00252 case THICKSIZEST:
00253 {
00254 match(THICKSIZEST);
00255 match(EQUAL);
00256 if ( inputState->guessing==0 ) {
00257 #line 91 "MTAnisoGAConf.g"
00258 i = 0; dtemp = 0; stemp = ""; btemp = false;
00259 #line 260 "MTAnisoGAConfParser.cpp"
00260 }
00261 {
00262 int _cnt104=0;
00263 for (;;) {
00264 if ((LA(1) == NUMBER)) {
00265 itemp=numvalue();
00266 if ( inputState->guessing==0 ) {
00267 #line 92 "MTAnisoGAConf.g"
00268 if (i < thicksizes.size()) {thicksizes.at(i) = itemp;} else{thicksizes.push_back(itemp);}++i;
00269 #line 270 "MTAnisoGAConfParser.cpp"
00270 }
00271 }
00272 else {
00273 if ( _cnt104>=1 ) { goto _loop104; } else {throw antlr::NoViableAltException(LT(1), getFilename());}
00274 }
00275
00276 _cnt104++;
00277 }
00278 _loop104:;
00279 }
00280 break;
00281 }
00282 case RESBASET:
00283 {
00284 match(RESBASET);
00285 match(EQUAL);
00286 if ( inputState->guessing==0 ) {
00287 #line 93 "MTAnisoGAConf.g"
00288 i = 0; dtemp = 0; stemp = ""; btemp = false;
00289 #line 290 "MTAnisoGAConfParser.cpp"
00290 }
00291 {
00292 int _cnt110=0;
00293 for (;;) {
00294 if ((LA(1) == NUMBER)) {
00295 dtemp=numvalue();
00296 if ( inputState->guessing==0 ) {
00297 #line 94 "MTAnisoGAConf.g"
00298 if (i < resbase.size()) {resbase.at(i) = dtemp;} else{resbase.push_back(dtemp);}++i;
00299 #line 300 "MTAnisoGAConfParser.cpp"
00300 }
00301 }
00302 else {
00303 if ( _cnt110>=1 ) { goto _loop110; } else {throw antlr::NoViableAltException(LT(1), getFilename());}
00304 }
00305
00306 _cnt110++;
00307 }
00308 _loop110:;
00309 }
00310 break;
00311 }
00312 case RESSTEPT:
00313 {
00314 match(RESSTEPT);
00315 match(EQUAL);
00316 if ( inputState->guessing==0 ) {
00317 #line 95 "MTAnisoGAConf.g"
00318 i = 0; dtemp = 0; stemp = ""; btemp = false;
00319 #line 320 "MTAnisoGAConfParser.cpp"
00320 }
00321 {
00322 int _cnt116=0;
00323 for (;;) {
00324 if ((LA(1) == NUMBER)) {
00325 dtemp=numvalue();
00326 if ( inputState->guessing==0 ) {
00327 #line 96 "MTAnisoGAConf.g"
00328 if (i < resstep.size()) {resstep.at(i) = dtemp;} else{resstep.push_back(dtemp);}++i;
00329 #line 330 "MTAnisoGAConfParser.cpp"
00330 }
00331 }
00332 else {
00333 if ( _cnt116>=1 ) { goto _loop116; } else {throw antlr::NoViableAltException(LT(1), getFilename());}
00334 }
00335
00336 _cnt116++;
00337 }
00338 _loop116:;
00339 }
00340 break;
00341 }
00342 case RESSIZEST:
00343 {
00344 match(RESSIZEST);
00345 match(EQUAL);
00346 if ( inputState->guessing==0 ) {
00347 #line 97 "MTAnisoGAConf.g"
00348 i = 0; dtemp = 0; stemp = ""; btemp = false;
00349 #line 350 "MTAnisoGAConfParser.cpp"
00350 }
00351 {
00352 int _cnt122=0;
00353 for (;;) {
00354 if ((LA(1) == NUMBER)) {
00355 itemp=numvalue();
00356 if ( inputState->guessing==0 ) {
00357 #line 98 "MTAnisoGAConf.g"
00358 if (i < ressizes.size()) {ressizes.at(i) = itemp;} else{ressizes.push_back(itemp);}++i;
00359 #line 360 "MTAnisoGAConfParser.cpp"
00360 }
00361 }
00362 else {
00363 if ( _cnt122>=1 ) { goto _loop122; } else {throw antlr::NoViableAltException(LT(1), getFilename());}
00364 }
00365
00366 _cnt122++;
00367 }
00368 _loop122:;
00369 }
00370 break;
00371 }
00372 case ANISOBASET:
00373 {
00374 match(ANISOBASET);
00375 match(EQUAL);
00376 if ( inputState->guessing==0 ) {
00377 #line 99 "MTAnisoGAConf.g"
00378 i = 0; dtemp = 0; stemp = ""; btemp = false;
00379 #line 380 "MTAnisoGAConfParser.cpp"
00380 }
00381 {
00382 int _cnt128=0;
00383 for (;;) {
00384 if ((LA(1) == NUMBER)) {
00385 dtemp=numvalue();
00386 if ( inputState->guessing==0 ) {
00387 #line 100 "MTAnisoGAConf.g"
00388 if (i < anisobase.size()) {anisobase.at(i) = dtemp;} else{anisobase.push_back(dtemp);}++i;
00389 #line 390 "MTAnisoGAConfParser.cpp"
00390 }
00391 }
00392 else {
00393 if ( _cnt128>=1 ) { goto _loop128; } else {throw antlr::NoViableAltException(LT(1), getFilename());}
00394 }
00395
00396 _cnt128++;
00397 }
00398 _loop128:;
00399 }
00400 break;
00401 }
00402 case ANISOSTEPT:
00403 {
00404 match(ANISOSTEPT);
00405 match(EQUAL);
00406 if ( inputState->guessing==0 ) {
00407 #line 101 "MTAnisoGAConf.g"
00408 i = 0; dtemp = 0; stemp = ""; btemp = false;
00409 #line 410 "MTAnisoGAConfParser.cpp"
00410 }
00411 {
00412 int _cnt134=0;
00413 for (;;) {
00414 if ((LA(1) == NUMBER)) {
00415 dtemp=numvalue();
00416 if ( inputState->guessing==0 ) {
00417 #line 102 "MTAnisoGAConf.g"
00418 if (i < anisostep.size()) {anisostep.at(i) = dtemp;} else{anisostep.push_back(dtemp);}++i;
00419 #line 420 "MTAnisoGAConfParser.cpp"
00420 }
00421 }
00422 else {
00423 if ( _cnt134>=1 ) { goto _loop134; } else {throw antlr::NoViableAltException(LT(1), getFilename());}
00424 }
00425
00426 _cnt134++;
00427 }
00428 _loop134:;
00429 }
00430 break;
00431 }
00432 case ANISOSIZEST:
00433 {
00434 match(ANISOSIZEST);
00435 match(EQUAL);
00436 if ( inputState->guessing==0 ) {
00437 #line 103 "MTAnisoGAConf.g"
00438 i = 0; dtemp = 0; stemp = ""; btemp = false;
00439 #line 440 "MTAnisoGAConfParser.cpp"
00440 }
00441 {
00442 int _cnt140=0;
00443 for (;;) {
00444 if ((LA(1) == NUMBER)) {
00445 itemp=numvalue();
00446 if ( inputState->guessing==0 ) {
00447 #line 104 "MTAnisoGAConf.g"
00448 if (i < anisosizes.size()) {anisosizes.at(i) = itemp;} else{anisosizes.push_back(itemp);}++i;
00449 #line 450 "MTAnisoGAConfParser.cpp"
00450 }
00451 }
00452 else {
00453 if ( _cnt140>=1 ) { goto _loop140; } else {throw antlr::NoViableAltException(LT(1), getFilename());}
00454 }
00455
00456 _cnt140++;
00457 }
00458 _loop140:;
00459 }
00460 break;
00461 }
00462 case STRIKEBASET:
00463 {
00464 match(STRIKEBASET);
00465 match(EQUAL);
00466 if ( inputState->guessing==0 ) {
00467 #line 105 "MTAnisoGAConf.g"
00468 i = 0; dtemp = 0; stemp = ""; btemp = false;
00469 #line 470 "MTAnisoGAConfParser.cpp"
00470 }
00471 {
00472 int _cnt146=0;
00473 for (;;) {
00474 if ((LA(1) == NUMBER)) {
00475 dtemp=numvalue();
00476 if ( inputState->guessing==0 ) {
00477 #line 106 "MTAnisoGAConf.g"
00478 if (i < strikebase.size()) {strikebase.at(i) = dtemp;} else{strikebase.push_back(dtemp);}++i;
00479 #line 480 "MTAnisoGAConfParser.cpp"
00480 }
00481 }
00482 else {
00483 if ( _cnt146>=1 ) { goto _loop146; } else {throw antlr::NoViableAltException(LT(1), getFilename());}
00484 }
00485
00486 _cnt146++;
00487 }
00488 _loop146:;
00489 }
00490 break;
00491 }
00492 case STRIKESTEPT:
00493 {
00494 match(STRIKESTEPT);
00495 match(EQUAL);
00496 if ( inputState->guessing==0 ) {
00497 #line 107 "MTAnisoGAConf.g"
00498 i = 0; dtemp = 0; stemp = ""; btemp = false;
00499 #line 500 "MTAnisoGAConfParser.cpp"
00500 }
00501 {
00502 int _cnt152=0;
00503 for (;;) {
00504 if ((LA(1) == NUMBER)) {
00505 dtemp=numvalue();
00506 if ( inputState->guessing==0 ) {
00507 #line 108 "MTAnisoGAConf.g"
00508 if (i < strikestep.size()) {strikestep.at(i) = dtemp;} else{strikestep.push_back(dtemp);}++i;
00509 #line 510 "MTAnisoGAConfParser.cpp"
00510 }
00511 }
00512 else {
00513 if ( _cnt152>=1 ) { goto _loop152; } else {throw antlr::NoViableAltException(LT(1), getFilename());}
00514 }
00515
00516 _cnt152++;
00517 }
00518 _loop152:;
00519 }
00520 break;
00521 }
00522 case STRIKESIZEST:
00523 {
00524 match(STRIKESIZEST);
00525 match(EQUAL);
00526 if ( inputState->guessing==0 ) {
00527 #line 109 "MTAnisoGAConf.g"
00528 i = 0; dtemp = 0; stemp = ""; btemp = false;
00529 #line 530 "MTAnisoGAConfParser.cpp"
00530 }
00531 {
00532 int _cnt158=0;
00533 for (;;) {
00534 if ((LA(1) == NUMBER)) {
00535 itemp=numvalue();
00536 if ( inputState->guessing==0 ) {
00537 #line 110 "MTAnisoGAConf.g"
00538 if (i < strikesizes.size()) {strikesizes.at(i) = itemp;} else{strikesizes.push_back(itemp);}++i;
00539 #line 540 "MTAnisoGAConfParser.cpp"
00540 }
00541 }
00542 else {
00543 if ( _cnt158>=1 ) { goto _loop158; } else {throw antlr::NoViableAltException(LT(1), getFilename());}
00544 }
00545
00546 _cnt158++;
00547 }
00548 _loop158:;
00549 }
00550 break;
00551 }
00552 case WEIGHTST:
00553 {
00554 match(WEIGHTST);
00555 match(EQUAL);
00556 if ( inputState->guessing==0 ) {
00557 #line 111 "MTAnisoGAConf.g"
00558 i = 0; dtemp = 0; stemp = ""; btemp = false;
00559 #line 560 "MTAnisoGAConfParser.cpp"
00560 }
00561 {
00562 int _cnt164=0;
00563 for (;;) {
00564 if ((LA(1) == NUMBER)) {
00565 dtemp=numvalue();
00566 if ( inputState->guessing==0 ) {
00567 #line 112 "MTAnisoGAConf.g"
00568 if (i < weights.size()) {weights.at(i) = dtemp;} else{weights.push_back(dtemp);}++i;
00569 #line 570 "MTAnisoGAConfParser.cpp"
00570 }
00571 }
00572 else {
00573 if ( _cnt164>=1 ) { goto _loop164; } else {throw antlr::NoViableAltException(LT(1), getFilename());}
00574 }
00575
00576 _cnt164++;
00577 }
00578 _loop164:;
00579 }
00580 break;
00581 }
00582 case CONDDIFFWEIGHTT:
00583 {
00584 match(CONDDIFFWEIGHTT);
00585 match(EQUAL);
00586 conddiffweight=numvalue();
00587 break;
00588 }
00589 case ANISOTROPYWEIGHTT:
00590 {
00591 match(ANISOTROPYWEIGHTT);
00592 match(EQUAL);
00593 anisotropyweight=numvalue();
00594 break;
00595 }
00596 case STRIKEDIFFWEIGHTT:
00597 {
00598 match(STRIKEDIFFWEIGHTT);
00599 match(EQUAL);
00600 strikediffweight=numvalue();
00601 break;
00602 }
00603 default:
00604 {
00605 throw antlr::NoViableAltException(LT(1), getFilename());
00606 }
00607 }
00608 }
00609 }
00610 catch (antlr::RecognitionException& ex) {
00611 if( inputState->guessing == 0 ) {
00612 reportError(ex);
00613 recover(ex,_tokenSet_0);
00614 } else {
00615 throw;
00616 }
00617 }
00618 }
00619
00620 bool MTAnisoGAConfParser::boolvalue() {
00621 #line 131 "MTAnisoGAConf.g"
00622 bool r;
00623 #line 624 "MTAnisoGAConfParser.cpp"
00624
00625 try {
00626 {
00627 switch ( LA(1)) {
00628 case TRUE:
00629 {
00630 match(TRUE);
00631 if ( inputState->guessing==0 ) {
00632 #line 132 "MTAnisoGAConf.g"
00633 r = true;
00634 #line 635 "MTAnisoGAConfParser.cpp"
00635 }
00636 break;
00637 }
00638 case FALSE:
00639 {
00640 match(FALSE);
00641 if ( inputState->guessing==0 ) {
00642 #line 132 "MTAnisoGAConf.g"
00643 r = false;
00644 #line 645 "MTAnisoGAConfParser.cpp"
00645 }
00646 break;
00647 }
00648 default:
00649 {
00650 throw antlr::NoViableAltException(LT(1), getFilename());
00651 }
00652 }
00653 }
00654 }
00655 catch (antlr::RecognitionException& ex) {
00656 if( inputState->guessing == 0 ) {
00657 reportError(ex);
00658 recover(ex,_tokenSet_0);
00659 } else {
00660 throw;
00661 }
00662 }
00663 return r;
00664 }
00665
00666 double MTAnisoGAConfParser::numvalue() {
00667 #line 127 "MTAnisoGAConf.g"
00668 double r;
00669 #line 670 "MTAnisoGAConfParser.cpp"
00670 antlr::RefToken currvalue = antlr::nullToken;
00671
00672 try {
00673 currvalue = LT(1);
00674 match(NUMBER);
00675 if ( inputState->guessing==0 ) {
00676 #line 128 "MTAnisoGAConf.g"
00677 r = atof(currvalue->getText().c_str());
00678 #line 679 "MTAnisoGAConfParser.cpp"
00679 }
00680 }
00681 catch (antlr::RecognitionException& ex) {
00682 if( inputState->guessing == 0 ) {
00683 reportError(ex);
00684 recover(ex,_tokenSet_1);
00685 } else {
00686 throw;
00687 }
00688 }
00689 return r;
00690 }
00691
00692 std::string MTAnisoGAConfParser::stringvalue() {
00693 #line 135 "MTAnisoGAConf.g"
00694 std::string r;
00695 #line 696 "MTAnisoGAConfParser.cpp"
00696 antlr::RefToken currvalue = antlr::nullToken;
00697
00698 try {
00699 currvalue = LT(1);
00700 match(STRING);
00701 if ( inputState->guessing==0 ) {
00702 #line 136 "MTAnisoGAConf.g"
00703 r = currvalue->getText();
00704 #line 705 "MTAnisoGAConfParser.cpp"
00705 }
00706 }
00707 catch (antlr::RecognitionException& ex) {
00708 if( inputState->guessing == 0 ) {
00709 reportError(ex);
00710 recover(ex,_tokenSet_0);
00711 } else {
00712 throw;
00713 }
00714 }
00715 return r;
00716 }
00717
00718 void MTAnisoGAConfParser::configfile() {
00719 #line 117 "MTAnisoGAConf.g"
00720
00721 verbose = false;
00722 mtfitexponent = 2;
00723 conddiffweight = 1;
00724 anisotropyweight = 1;
00725 strikediffweight = 1;
00726
00727 #line 728 "MTAnisoGAConfParser.cpp"
00728
00729 try {
00730 {
00731 int _cnt180=0;
00732 for (;;) {
00733 if ((_tokenSet_2.member(LA(1)))) {
00734 configentry();
00735 {
00736 if ((LA(1) == COMMENT) && (_tokenSet_0.member(LA(2))) && (LA(3) == antlr::Token::EOF_TYPE || LA(3) == EQUAL || LA(3) == COMMENT) && (_tokenSet_3.member(LA(4))) && (_tokenSet_1.member(LA(5))) && (_tokenSet_4.member(LA(6))) && (_tokenSet_5.member(LA(7))) && (_tokenSet_5.member(LA(8))) && (_tokenSet_5.member(LA(9))) && (_tokenSet_5.member(LA(10)))) {
00737 match(COMMENT);
00738 }
00739 else if ((_tokenSet_0.member(LA(1))) && (LA(2) == antlr::Token::EOF_TYPE || LA(2) == EQUAL || LA(2) == COMMENT) && (_tokenSet_3.member(LA(3))) && (_tokenSet_1.member(LA(4))) && (_tokenSet_4.member(LA(5))) && (_tokenSet_5.member(LA(6))) && (_tokenSet_5.member(LA(7))) && (_tokenSet_5.member(LA(8))) && (_tokenSet_5.member(LA(9))) && (_tokenSet_5.member(LA(10)))) {
00740 }
00741 else {
00742 throw antlr::NoViableAltException(LT(1), getFilename());
00743 }
00744
00745 }
00746 }
00747 else {
00748 if ( _cnt180>=1 ) { goto _loop180; } else {throw antlr::NoViableAltException(LT(1), getFilename());}
00749 }
00750
00751 _cnt180++;
00752 }
00753 _loop180:;
00754 }
00755 {
00756 for (;;) {
00757 if ((LA(1) == COMMENT)) {
00758 match(COMMENT);
00759 }
00760 else {
00761 goto _loop182;
00762 }
00763
00764 }
00765 _loop182:;
00766 }
00767 match(antlr::Token::EOF_TYPE);
00768 }
00769 catch (antlr::RecognitionException& ex) {
00770 if( inputState->guessing == 0 ) {
00771 reportError(ex);
00772 recover(ex,_tokenSet_6);
00773 } else {
00774 throw;
00775 }
00776 }
00777 }
00778
00779 void MTAnisoGAConfParser::initializeASTFactory( antlr::ASTFactory& )
00780 {
00781 }
00782 const char* MTAnisoGAConfParser::tokenNames[] = {
00783 "<0>",
00784 "EOF",
00785 "<2>",
00786 "NULL_TREE_LOOKAHEAD",
00787 "VERBOSET",
00788 "EQUAL",
00789 "MTFITEXPONENTT",
00790 "NUMBER",
00791 "POPSIZET",
00792 "INITTEMPT",
00793 "COOLINGRATIOT",
00794 "GENERATIONST",
00795 "MUTATIONPROBT",
00796 "CROSSOVERPROBT",
00797 "THREADST",
00798 "STARTTIMET",
00799 "ENDTIMET",
00800 "TENSORERRORT",
00801 "RESERRORT",
00802 "PHASEERRORT",
00803 "GATYPET",
00804 "STRING",
00805 "OUTPUTBASET",
00806 "MODET",
00807 "MTFITT",
00808 "MTINPUTDATAT",
00809 "PTENSORDATAT",
00810 "ANNEALINGGENERATIONT",
00811 "ELITISTT",
00812 "THICKBASET",
00813 "THICKSTEPT",
00814 "THICKSIZEST",
00815 "RESBASET",
00816 "RESSTEPT",
00817 "RESSIZEST",
00818 "ANISOBASET",
00819 "ANISOSTEPT",
00820 "ANISOSIZEST",
00821 "STRIKEBASET",
00822 "STRIKESTEPT",
00823 "STRIKESIZEST",
00824 "WEIGHTST",
00825 "CONDDIFFWEIGHTT",
00826 "ANISOTROPYWEIGHTT",
00827 "STRIKEDIFFWEIGHTT",
00828 "COMMENT",
00829 "TRUE",
00830 "FALSE",
00831 "WS",
00832 "NEWLINE",
00833 "REAL",
00834 "INT",
00835 "DIGIT",
00836 "CHAR",
00837 "OTHER",
00838 0
00839 };
00840
00841 const unsigned long MTAnisoGAConfParser::_tokenSet_0_data_[] = { 4292869970UL, 16383UL, 0UL, 0UL };
00842
00843
00844
00845
00846
00847
00848
00849 const antlr::BitSet MTAnisoGAConfParser::_tokenSet_0(_tokenSet_0_data_,4);
00850 const unsigned long MTAnisoGAConfParser::_tokenSet_1_data_[] = { 4292870098UL, 16383UL, 0UL, 0UL };
00851
00852
00853
00854
00855
00856
00857
00858 const antlr::BitSet MTAnisoGAConfParser::_tokenSet_1(_tokenSet_1_data_,4);
00859 const unsigned long MTAnisoGAConfParser::_tokenSet_2_data_[] = { 4292869968UL, 8191UL, 0UL, 0UL };
00860
00861
00862
00863
00864
00865
00866
00867 const antlr::BitSet MTAnisoGAConfParser::_tokenSet_2(_tokenSet_2_data_,4);
00868 const unsigned long MTAnisoGAConfParser::_tokenSet_3_data_[] = { 2097282UL, 57344UL, 0UL, 0UL };
00869
00870 const antlr::BitSet MTAnisoGAConfParser::_tokenSet_3(_tokenSet_3_data_,4);
00871 const unsigned long MTAnisoGAConfParser::_tokenSet_4_data_[] = { 4292870130UL, 16383UL, 0UL, 0UL };
00872
00873
00874
00875
00876
00877
00878
00879 const antlr::BitSet MTAnisoGAConfParser::_tokenSet_4(_tokenSet_4_data_,4);
00880 const unsigned long MTAnisoGAConfParser::_tokenSet_5_data_[] = { 4294967282UL, 65535UL, 0UL, 0UL };
00881
00882
00883
00884
00885
00886
00887
00888 const antlr::BitSet MTAnisoGAConfParser::_tokenSet_5(_tokenSet_5_data_,4);
00889 const unsigned long MTAnisoGAConfParser::_tokenSet_6_data_[] = { 2UL, 0UL, 0UL, 0UL };
00890
00891 const antlr::BitSet MTAnisoGAConfParser::_tokenSet_6(_tokenSet_6_data_,4);
00892
00893