#include <CLevmarConfLexer.hpp>
Inheritance diagram for CLevmarConfLexer:


Public Member Functions | |
| bool | getCaseSensitiveLiterals () const |
| CLevmarConfLexer (std::istream &in) | |
| CLevmarConfLexer (antlr::InputBuffer &ib) | |
| CLevmarConfLexer (const antlr::LexerSharedInputState &state) | |
| antlr::RefToken | nextToken () |
| void | mEQUAL (bool _createToken) |
| void | mTRUE (bool _createToken) |
| void | mFALSE (bool _createToken) |
| void | mWS (bool _createToken) |
| void | mSTRING (bool _createToken) |
| void | mNUMBER (bool _createToken) |
| void | mCOMMENT (bool _createToken) |
| void | mMAXITERT (bool _createToken) |
| void | mMODET (bool _createToken) |
| void | mMTFITT (bool _createToken) |
| void | mMTINPUTDATAT (bool _createToken) |
| void | mRECINPUTDATAT (bool _createToken) |
| void | mSLOWNESST (bool _createToken) |
| void | mOMEGAT (bool _createToken) |
| void | mSIGMAT (bool _createToken) |
| void | mSHIFTT (bool _createToken) |
| void | mWLEVELT (bool _createToken) |
| void | mPOISSONT (bool _createToken) |
| void | mSTARTTIMET (bool _createToken) |
| void | mENDTIMET (bool _createToken) |
| void | mTENSORERRORT (bool _createToken) |
| void | mPHASEERRORT (bool _createToken) |
| void | mRESERRORT (bool _createToken) |
| void | mRECERRORT (bool _createToken) |
| void | mMINREST (bool _createToken) |
| void | mMAXREST (bool _createToken) |
| void | mSTARTREST (bool _createToken) |
| void | mMINTHICKT (bool _createToken) |
| void | mMAXTHICKT (bool _createToken) |
| void | mSTARTTHICKT (bool _createToken) |
| void | mMINSVELT (bool _createToken) |
| void | mMAXSVELT (bool _createToken) |
| void | mSTARTSVELT (bool _createToken) |
| void | mMINDENST (bool _createToken) |
| void | mMAXDENST (bool _createToken) |
| void | mSTARTDENST (bool _createToken) |
| void | mWEIGHTST (bool _createToken) |
Protected Member Functions | |
| void | mNEWLINE (bool _createToken) |
| void | mCHAR (bool _createToken) |
| void | mDIGIT (bool _createToken) |
| void | mOTHER (bool _createToken) |
| void | mREAL (bool _createToken) |
| void | mINT (bool _createToken) |
Definition at line 18 of file CLevmarConfLexer.hpp.
| CLevmarConfLexer::CLevmarConfLexer | ( | std::istream & | in | ) |
| CLevmarConfLexer::CLevmarConfLexer | ( | antlr::InputBuffer & | ib | ) |
| CLevmarConfLexer::CLevmarConfLexer | ( | const antlr::LexerSharedInputState & | state | ) |
| bool CLevmarConfLexer::getCaseSensitiveLiterals | ( | ) | const [inline] |
| antlr::RefToken CLevmarConfLexer::nextToken | ( | ) |
Definition at line 35 of file CLevmarConfLexer.cpp.
References mCOMMENT(), mENDTIMET(), mEQUAL(), mFALSE(), mMAXDENST(), mMAXITERT(), mMAXREST(), mMAXSVELT(), mMAXTHICKT(), mMINDENST(), mMINREST(), mMINSVELT(), mMINTHICKT(), mMODET(), mMTFITT(), mMTINPUTDATAT(), mNUMBER(), mOMEGAT(), mPHASEERRORT(), mPOISSONT(), mRECERRORT(), mRECINPUTDATAT(), mRESERRORT(), mSHIFTT(), mSIGMAT(), mSLOWNESST(), mSTARTDENST(), mSTARTREST(), mSTARTSVELT(), mSTARTTHICKT(), mSTARTTIMET(), mSTRING(), mTENSORERRORT(), mTRUE(), mWEIGHTST(), mWLEVELT(), and mWS().
00036 { 00037 antlr::RefToken theRetToken; 00038 for (;;) { 00039 antlr::RefToken theRetToken; 00040 int _ttype = antlr::Token::INVALID_TYPE; 00041 resetText(); 00042 try { // for lexical and char stream error handling 00043 switch ( LA(1)) { 00044 case 0x3d /* '=' */ : 00045 { 00046 mEQUAL(true); 00047 theRetToken=_returnToken; 00048 break; 00049 } 00050 case 0x9 /* '\t' */ : 00051 case 0xa /* '\n' */ : 00052 case 0xd /* '\r' */ : 00053 case 0x20 /* ' ' */ : 00054 { 00055 mWS(true); 00056 theRetToken=_returnToken; 00057 break; 00058 } 00059 case 0x2b /* '+' */ : 00060 case 0x2d /* '-' */ : 00061 case 0x2e /* '.' */ : 00062 case 0x30 /* '0' */ : 00063 case 0x31 /* '1' */ : 00064 case 0x32 /* '2' */ : 00065 case 0x33 /* '3' */ : 00066 case 0x34 /* '4' */ : 00067 case 0x35 /* '5' */ : 00068 case 0x36 /* '6' */ : 00069 case 0x37 /* '7' */ : 00070 case 0x38 /* '8' */ : 00071 case 0x39 /* '9' */ : 00072 { 00073 mNUMBER(true); 00074 theRetToken=_returnToken; 00075 break; 00076 } 00077 case 0x2f /* '/' */ : 00078 { 00079 mCOMMENT(true); 00080 theRetToken=_returnToken; 00081 break; 00082 } 00083 default: 00084 if ((LA(1) == 0x6d /* 'm' */ ) && (LA(2) == 0x74 /* 't' */ ) && (LA(3) == 0x69 /* 'i' */ ) && (LA(4) == 0x6e /* 'n' */ ) && (LA(5) == 0x70 /* 'p' */ ) && (LA(6) == 0x75 /* 'u' */ ) && (LA(7) == 0x74 /* 't' */ ) && (LA(8) == 0x64 /* 'd' */ ) && (LA(9) == 0x61 /* 'a' */ ) && (LA(10) == 0x74 /* 't' */ )) { 00085 mMTINPUTDATAT(true); 00086 theRetToken=_returnToken; 00087 } 00088 else if ((LA(1) == 0x72 /* 'r' */ ) && (LA(2) == 0x65 /* 'e' */ ) && (LA(3) == 0x63 /* 'c' */ ) && (LA(4) == 0x69 /* 'i' */ ) && (LA(5) == 0x6e /* 'n' */ ) && (LA(6) == 0x70 /* 'p' */ ) && (LA(7) == 0x75 /* 'u' */ ) && (LA(8) == 0x74 /* 't' */ ) && (LA(9) == 0x64 /* 'd' */ ) && (LA(10) == 0x61 /* 'a' */ )) { 00089 mRECINPUTDATAT(true); 00090 theRetToken=_returnToken; 00091 } 00092 else if ((LA(1) == 0x74 /* 't' */ ) && (LA(2) == 0x65 /* 'e' */ ) && (LA(3) == 0x6e /* 'n' */ ) && (LA(4) == 0x73 /* 's' */ ) && (LA(5) == 0x6f /* 'o' */ ) && (LA(6) == 0x72 /* 'r' */ ) && (LA(7) == 0x65 /* 'e' */ ) && (LA(8) == 0x72 /* 'r' */ ) && (LA(9) == 0x72 /* 'r' */ ) && (LA(10) == 0x6f /* 'o' */ )) { 00093 mTENSORERRORT(true); 00094 theRetToken=_returnToken; 00095 } 00096 else if ((LA(1) == 0x70 /* 'p' */ ) && (LA(2) == 0x68 /* 'h' */ ) && (LA(3) == 0x61 /* 'a' */ ) && (LA(4) == 0x73 /* 's' */ ) && (LA(5) == 0x65 /* 'e' */ ) && (LA(6) == 0x65 /* 'e' */ ) && (LA(7) == 0x72 /* 'r' */ ) && (LA(8) == 0x72 /* 'r' */ ) && (LA(9) == 0x6f /* 'o' */ ) && (LA(10) == 0x72 /* 'r' */ )) { 00097 mPHASEERRORT(true); 00098 theRetToken=_returnToken; 00099 } 00100 else if ((LA(1) == 0x73 /* 's' */ ) && (LA(2) == 0x74 /* 't' */ ) && (LA(3) == 0x61 /* 'a' */ ) && (LA(4) == 0x72 /* 'r' */ ) && (LA(5) == 0x74 /* 't' */ ) && (LA(6) == 0x74 /* 't' */ ) && (LA(7) == 0x68 /* 'h' */ ) && (LA(8) == 0x69 /* 'i' */ ) && (LA(9) == 0x63 /* 'c' */ ) && (LA(10) == 0x6b /* 'k' */ )) { 00101 mSTARTTHICKT(true); 00102 theRetToken=_returnToken; 00103 } 00104 else if ((LA(1) == 0x73 /* 's' */ ) && (LA(2) == 0x74 /* 't' */ ) && (LA(3) == 0x61 /* 'a' */ ) && (LA(4) == 0x72 /* 'r' */ ) && (LA(5) == 0x74 /* 't' */ ) && (LA(6) == 0x74 /* 't' */ ) && (LA(7) == 0x69 /* 'i' */ ) && (LA(8) == 0x6d /* 'm' */ ) && (LA(9) == 0x65 /* 'e' */ ) && (true)) { 00105 mSTARTTIMET(true); 00106 theRetToken=_returnToken; 00107 } 00108 else if ((LA(1) == 0x73 /* 's' */ ) && (LA(2) == 0x74 /* 't' */ ) && (LA(3) == 0x61 /* 'a' */ ) && (LA(4) == 0x72 /* 'r' */ ) && (LA(5) == 0x74 /* 't' */ ) && (LA(6) == 0x73 /* 's' */ ) && (LA(7) == 0x76 /* 'v' */ ) && (LA(8) == 0x65 /* 'e' */ ) && (LA(9) == 0x6c /* 'l' */ ) && (true)) { 00109 mSTARTSVELT(true); 00110 theRetToken=_returnToken; 00111 } 00112 else if ((LA(1) == 0x73 /* 's' */ ) && (LA(2) == 0x74 /* 't' */ ) && (LA(3) == 0x61 /* 'a' */ ) && (LA(4) == 0x72 /* 'r' */ ) && (LA(5) == 0x74 /* 't' */ ) && (LA(6) == 0x64 /* 'd' */ ) && (LA(7) == 0x65 /* 'e' */ ) && (LA(8) == 0x6e /* 'n' */ ) && (LA(9) == 0x73 /* 's' */ ) && (true)) { 00113 mSTARTDENST(true); 00114 theRetToken=_returnToken; 00115 } 00116 else if ((LA(1) == 0x73 /* 's' */ ) && (LA(2) == 0x6c /* 'l' */ ) && (LA(3) == 0x6f /* 'o' */ ) && (LA(4) == 0x77 /* 'w' */ ) && (LA(5) == 0x6e /* 'n' */ ) && (LA(6) == 0x65 /* 'e' */ ) && (LA(7) == 0x73 /* 's' */ ) && (LA(8) == 0x73 /* 's' */ ) && (true) && (true)) { 00117 mSLOWNESST(true); 00118 theRetToken=_returnToken; 00119 } 00120 else if ((LA(1) == 0x72 /* 'r' */ ) && (LA(2) == 0x65 /* 'e' */ ) && (LA(3) == 0x73 /* 's' */ ) && (LA(4) == 0x65 /* 'e' */ ) && (LA(5) == 0x72 /* 'r' */ ) && (LA(6) == 0x72 /* 'r' */ ) && (LA(7) == 0x6f /* 'o' */ ) && (LA(8) == 0x72 /* 'r' */ ) && (true) && (true)) { 00121 mRESERRORT(true); 00122 theRetToken=_returnToken; 00123 } 00124 else if ((LA(1) == 0x72 /* 'r' */ ) && (LA(2) == 0x65 /* 'e' */ ) && (LA(3) == 0x63 /* 'c' */ ) && (LA(4) == 0x65 /* 'e' */ ) && (LA(5) == 0x72 /* 'r' */ ) && (LA(6) == 0x72 /* 'r' */ ) && (LA(7) == 0x6f /* 'o' */ ) && (LA(8) == 0x72 /* 'r' */ ) && (true) && (true)) { 00125 mRECERRORT(true); 00126 theRetToken=_returnToken; 00127 } 00128 else if ((LA(1) == 0x73 /* 's' */ ) && (LA(2) == 0x74 /* 't' */ ) && (LA(3) == 0x61 /* 'a' */ ) && (LA(4) == 0x72 /* 'r' */ ) && (LA(5) == 0x74 /* 't' */ ) && (LA(6) == 0x72 /* 'r' */ ) && (LA(7) == 0x65 /* 'e' */ ) && (LA(8) == 0x73 /* 's' */ ) && (true) && (true)) { 00129 mSTARTREST(true); 00130 theRetToken=_returnToken; 00131 } 00132 else if ((LA(1) == 0x6d /* 'm' */ ) && (LA(2) == 0x69 /* 'i' */ ) && (LA(3) == 0x6e /* 'n' */ ) && (LA(4) == 0x74 /* 't' */ ) && (LA(5) == 0x68 /* 'h' */ ) && (LA(6) == 0x69 /* 'i' */ ) && (LA(7) == 0x63 /* 'c' */ ) && (LA(8) == 0x6b /* 'k' */ ) && (true) && (true)) { 00133 mMINTHICKT(true); 00134 theRetToken=_returnToken; 00135 } 00136 else if ((LA(1) == 0x6d /* 'm' */ ) && (LA(2) == 0x61 /* 'a' */ ) && (LA(3) == 0x78 /* 'x' */ ) && (LA(4) == 0x74 /* 't' */ ) && (LA(5) == 0x68 /* 'h' */ ) && (LA(6) == 0x69 /* 'i' */ ) && (LA(7) == 0x63 /* 'c' */ ) && (LA(8) == 0x6b /* 'k' */ ) && (true) && (true)) { 00137 mMAXTHICKT(true); 00138 theRetToken=_returnToken; 00139 } 00140 else if ((LA(1) == 0x6d /* 'm' */ ) && (LA(2) == 0x61 /* 'a' */ ) && (LA(3) == 0x78 /* 'x' */ ) && (LA(4) == 0x69 /* 'i' */ ) && (LA(5) == 0x74 /* 't' */ ) && (LA(6) == 0x65 /* 'e' */ ) && (LA(7) == 0x72 /* 'r' */ ) && (true) && (true) && (true)) { 00141 mMAXITERT(true); 00142 theRetToken=_returnToken; 00143 } 00144 else if ((LA(1) == 0x70 /* 'p' */ ) && (LA(2) == 0x6f /* 'o' */ ) && (LA(3) == 0x69 /* 'i' */ ) && (LA(4) == 0x73 /* 's' */ ) && (LA(5) == 0x73 /* 's' */ ) && (LA(6) == 0x6f /* 'o' */ ) && (LA(7) == 0x6e /* 'n' */ ) && (true) && (true) && (true)) { 00145 mPOISSONT(true); 00146 theRetToken=_returnToken; 00147 } 00148 else if ((LA(1) == 0x65 /* 'e' */ ) && (LA(2) == 0x6e /* 'n' */ ) && (LA(3) == 0x64 /* 'd' */ ) && (LA(4) == 0x74 /* 't' */ ) && (LA(5) == 0x69 /* 'i' */ ) && (LA(6) == 0x6d /* 'm' */ ) && (LA(7) == 0x65 /* 'e' */ ) && (true) && (true) && (true)) { 00149 mENDTIMET(true); 00150 theRetToken=_returnToken; 00151 } 00152 else if ((LA(1) == 0x6d /* 'm' */ ) && (LA(2) == 0x69 /* 'i' */ ) && (LA(3) == 0x6e /* 'n' */ ) && (LA(4) == 0x73 /* 's' */ ) && (LA(5) == 0x76 /* 'v' */ ) && (LA(6) == 0x65 /* 'e' */ ) && (LA(7) == 0x6c /* 'l' */ ) && (true) && (true) && (true)) { 00153 mMINSVELT(true); 00154 theRetToken=_returnToken; 00155 } 00156 else if ((LA(1) == 0x6d /* 'm' */ ) && (LA(2) == 0x61 /* 'a' */ ) && (LA(3) == 0x78 /* 'x' */ ) && (LA(4) == 0x73 /* 's' */ ) && (LA(5) == 0x76 /* 'v' */ ) && (LA(6) == 0x65 /* 'e' */ ) && (LA(7) == 0x6c /* 'l' */ ) && (true) && (true) && (true)) { 00157 mMAXSVELT(true); 00158 theRetToken=_returnToken; 00159 } 00160 else if ((LA(1) == 0x6d /* 'm' */ ) && (LA(2) == 0x69 /* 'i' */ ) && (LA(3) == 0x6e /* 'n' */ ) && (LA(4) == 0x64 /* 'd' */ ) && (LA(5) == 0x65 /* 'e' */ ) && (LA(6) == 0x6e /* 'n' */ ) && (LA(7) == 0x73 /* 's' */ ) && (true) && (true) && (true)) { 00161 mMINDENST(true); 00162 theRetToken=_returnToken; 00163 } 00164 else if ((LA(1) == 0x6d /* 'm' */ ) && (LA(2) == 0x61 /* 'a' */ ) && (LA(3) == 0x78 /* 'x' */ ) && (LA(4) == 0x64 /* 'd' */ ) && (LA(5) == 0x65 /* 'e' */ ) && (LA(6) == 0x6e /* 'n' */ ) && (LA(7) == 0x73 /* 's' */ ) && (true) && (true) && (true)) { 00165 mMAXDENST(true); 00166 theRetToken=_returnToken; 00167 } 00168 else if ((LA(1) == 0x77 /* 'w' */ ) && (LA(2) == 0x65 /* 'e' */ ) && (LA(3) == 0x69 /* 'i' */ ) && (LA(4) == 0x67 /* 'g' */ ) && (LA(5) == 0x68 /* 'h' */ ) && (LA(6) == 0x74 /* 't' */ ) && (LA(7) == 0x73 /* 's' */ ) && (true) && (true) && (true)) { 00169 mWEIGHTST(true); 00170 theRetToken=_returnToken; 00171 } 00172 else if ((LA(1) == 0x77 /* 'w' */ ) && (LA(2) == 0x6c /* 'l' */ ) && (LA(3) == 0x65 /* 'e' */ ) && (LA(4) == 0x76 /* 'v' */ ) && (LA(5) == 0x65 /* 'e' */ ) && (LA(6) == 0x6c /* 'l' */ ) && (true) && (true) && (true) && (true)) { 00173 mWLEVELT(true); 00174 theRetToken=_returnToken; 00175 } 00176 else if ((LA(1) == 0x6d /* 'm' */ ) && (LA(2) == 0x69 /* 'i' */ ) && (LA(3) == 0x6e /* 'n' */ ) && (LA(4) == 0x72 /* 'r' */ ) && (LA(5) == 0x65 /* 'e' */ ) && (LA(6) == 0x73 /* 's' */ ) && (true) && (true) && (true) && (true)) { 00177 mMINREST(true); 00178 theRetToken=_returnToken; 00179 } 00180 else if ((LA(1) == 0x6d /* 'm' */ ) && (LA(2) == 0x61 /* 'a' */ ) && (LA(3) == 0x78 /* 'x' */ ) && (LA(4) == 0x72 /* 'r' */ ) && (LA(5) == 0x65 /* 'e' */ ) && (LA(6) == 0x73 /* 's' */ ) && (true) && (true) && (true) && (true)) { 00181 mMAXREST(true); 00182 theRetToken=_returnToken; 00183 } 00184 else if ((LA(1) == 0x66 /* 'f' */ ) && (LA(2) == 0x61 /* 'a' */ ) && (LA(3) == 0x6c /* 'l' */ ) && (LA(4) == 0x73 /* 's' */ ) && (LA(5) == 0x65 /* 'e' */ ) && (true) && (true) && (true) && (true) && (true)) { 00185 mFALSE(true); 00186 theRetToken=_returnToken; 00187 } 00188 else if ((LA(1) == 0x6d /* 'm' */ ) && (LA(2) == 0x74 /* 't' */ ) && (LA(3) == 0x66 /* 'f' */ ) && (LA(4) == 0x69 /* 'i' */ ) && (LA(5) == 0x74 /* 't' */ ) && (true) && (true) && (true) && (true) && (true)) { 00189 mMTFITT(true); 00190 theRetToken=_returnToken; 00191 } 00192 else if ((LA(1) == 0x6f /* 'o' */ ) && (LA(2) == 0x6d /* 'm' */ ) && (LA(3) == 0x65 /* 'e' */ ) && (LA(4) == 0x67 /* 'g' */ ) && (LA(5) == 0x61 /* 'a' */ ) && (true) && (true) && (true) && (true) && (true)) { 00193 mOMEGAT(true); 00194 theRetToken=_returnToken; 00195 } 00196 else if ((LA(1) == 0x73 /* 's' */ ) && (LA(2) == 0x69 /* 'i' */ ) && (LA(3) == 0x67 /* 'g' */ ) && (LA(4) == 0x6d /* 'm' */ ) && (LA(5) == 0x61 /* 'a' */ ) && (true) && (true) && (true) && (true) && (true)) { 00197 mSIGMAT(true); 00198 theRetToken=_returnToken; 00199 } 00200 else if ((LA(1) == 0x73 /* 's' */ ) && (LA(2) == 0x68 /* 'h' */ ) && (LA(3) == 0x69 /* 'i' */ ) && (LA(4) == 0x66 /* 'f' */ ) && (LA(5) == 0x74 /* 't' */ ) && (true) && (true) && (true) && (true) && (true)) { 00201 mSHIFTT(true); 00202 theRetToken=_returnToken; 00203 } 00204 else if ((LA(1) == 0x74 /* 't' */ ) && (LA(2) == 0x72 /* 'r' */ ) && (LA(3) == 0x75 /* 'u' */ ) && (LA(4) == 0x65 /* 'e' */ ) && (true) && (true) && (true) && (true) && (true) && (true)) { 00205 mTRUE(true); 00206 theRetToken=_returnToken; 00207 } 00208 else if ((LA(1) == 0x6d /* 'm' */ ) && (LA(2) == 0x6f /* 'o' */ ) && (LA(3) == 0x64 /* 'd' */ ) && (LA(4) == 0x65 /* 'e' */ ) && (true) && (true) && (true) && (true) && (true) && (true)) { 00209 mMODET(true); 00210 theRetToken=_returnToken; 00211 } 00212 else if (((LA(1) >= 0x61 /* 'a' */ && LA(1) <= 0x7a /* 'z' */ )) && (true) && (true) && (true) && (true) && (true) && (true) && (true) && (true) && (true)) { 00213 mSTRING(true); 00214 theRetToken=_returnToken; 00215 } 00216 else { 00217 if (LA(1)==EOF_CHAR) 00218 { 00219 uponEOF(); 00220 _returnToken = makeToken(antlr::Token::EOF_TYPE); 00221 } 00222 else {throw antlr::NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());} 00223 } 00224 } 00225 if ( !_returnToken ) 00226 goto tryAgain; // found SKIP token 00227 00228 _ttype = _returnToken->getType(); 00229 _ttype = testLiteralsTable(_ttype); 00230 _returnToken->setType(_ttype); 00231 return _returnToken; 00232 } 00233 catch (antlr::RecognitionException& e) { 00234 throw antlr::TokenStreamRecognitionException(e); 00235 } 00236 catch (antlr::CharStreamIOException& csie) { 00237 throw antlr::TokenStreamIOException(csie.io); 00238 } 00239 catch (antlr::CharStreamException& cse) { 00240 throw antlr::TokenStreamException(cse.getMessage()); 00241 } 00242 tryAgain:; 00243 } 00244 }
Here is the call graph for this function:

| void CLevmarConfLexer::mEQUAL | ( | bool | _createToken | ) |
Definition at line 246 of file CLevmarConfLexer.cpp.
References EQUAL.
Referenced by nextToken().
00246 { 00247 int _ttype; antlr::RefToken _token; std::string::size_type _begin = text.length(); 00248 _ttype = EQUAL; 00249 std::string::size_type _saveIndex; 00250 00251 match('=' /* charlit */ ); 00252 if ( _createToken && _token==antlr::nullToken && _ttype!=antlr::Token::SKIP ) { 00253 _token = makeToken(_ttype); 00254 _token->setText(text.substr(_begin, text.length()-_begin)); 00255 } 00256 _returnToken = _token; 00257 _saveIndex=0; 00258 }
| void CLevmarConfLexer::mTRUE | ( | bool | _createToken | ) |
Definition at line 260 of file CLevmarConfLexer.cpp.
References TRUE.
Referenced by nextToken().
00260 { 00261 int _ttype; antlr::RefToken _token; std::string::size_type _begin = text.length(); 00262 _ttype = TRUE; 00263 std::string::size_type _saveIndex; 00264 00265 match("true"); 00266 if ( _createToken && _token==antlr::nullToken && _ttype!=antlr::Token::SKIP ) { 00267 _token = makeToken(_ttype); 00268 _token->setText(text.substr(_begin, text.length()-_begin)); 00269 } 00270 _returnToken = _token; 00271 _saveIndex=0; 00272 }
| void CLevmarConfLexer::mFALSE | ( | bool | _createToken | ) |
Definition at line 274 of file CLevmarConfLexer.cpp.
References FALSE.
Referenced by nextToken().
00274 { 00275 int _ttype; antlr::RefToken _token; std::string::size_type _begin = text.length(); 00276 _ttype = FALSE; 00277 std::string::size_type _saveIndex; 00278 00279 match("false"); 00280 if ( _createToken && _token==antlr::nullToken && _ttype!=antlr::Token::SKIP ) { 00281 _token = makeToken(_ttype); 00282 _token->setText(text.substr(_begin, text.length()-_begin)); 00283 } 00284 _returnToken = _token; 00285 _saveIndex=0; 00286 }
| void CLevmarConfLexer::mWS | ( | bool | _createToken | ) |
Definition at line 288 of file CLevmarConfLexer.cpp.
References mNEWLINE(), and WS.
Referenced by nextToken().
00288 { 00289 int _ttype; antlr::RefToken _token; std::string::size_type _begin = text.length(); 00290 _ttype = WS; 00291 std::string::size_type _saveIndex; 00292 00293 { // ( ... )+ 00294 int _cnt164=0; 00295 for (;;) { 00296 switch ( LA(1)) { 00297 case 0x20 /* ' ' */ : 00298 { 00299 match(' ' /* charlit */ ); 00300 break; 00301 } 00302 case 0xa /* '\n' */ : 00303 case 0xd /* '\r' */ : 00304 { 00305 mNEWLINE(false); 00306 break; 00307 } 00308 case 0x9 /* '\t' */ : 00309 { 00310 match('\t' /* charlit */ ); 00311 break; 00312 } 00313 default: 00314 { 00315 if ( _cnt164>=1 ) { goto _loop164; } else {throw antlr::NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());} 00316 } 00317 } 00318 _cnt164++; 00319 } 00320 _loop164:; 00321 } // ( ... )+ 00322 if ( inputState->guessing==0 ) { 00323 #line 135 "CLevmarConf.g" 00324 _ttype = ANTLR_USE_NAMESPACE(antlr)Token::SKIP; 00325 #line 326 "CLevmarConfLexer.cpp" 00326 } 00327 if ( _createToken && _token==antlr::nullToken && _ttype!=antlr::Token::SKIP ) { 00328 _token = makeToken(_ttype); 00329 _token->setText(text.substr(_begin, text.length()-_begin)); 00330 } 00331 _returnToken = _token; 00332 _saveIndex=0; 00333 }
Here is the call graph for this function:

| void CLevmarConfLexer::mNEWLINE | ( | bool | _createToken | ) | [protected] |
Definition at line 335 of file CLevmarConfLexer.cpp.
References NEWLINE.
Referenced by mCOMMENT(), and mWS().
00335 { 00336 int _ttype; antlr::RefToken _token; std::string::size_type _begin = text.length(); 00337 _ttype = NEWLINE; 00338 std::string::size_type _saveIndex; 00339 00340 { 00341 switch ( LA(1)) { 00342 case 0xa /* '\n' */ : 00343 { 00344 match('\n' /* charlit */ ); 00345 break; 00346 } 00347 case 0xd /* '\r' */ : 00348 { 00349 match('\r' /* charlit */ ); 00350 match('\n' /* charlit */ ); 00351 break; 00352 } 00353 default: 00354 { 00355 throw antlr::NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn()); 00356 } 00357 } 00358 } 00359 if ( inputState->guessing==0 ) { 00360 #line 161 "CLevmarConf.g" 00361 newline(); 00362 #line 363 "CLevmarConfLexer.cpp" 00363 } 00364 if ( _createToken && _token==antlr::nullToken && _ttype!=antlr::Token::SKIP ) { 00365 _token = makeToken(_ttype); 00366 _token->setText(text.substr(_begin, text.length()-_begin)); 00367 } 00368 _returnToken = _token; 00369 _saveIndex=0; 00370 }
| void CLevmarConfLexer::mSTRING | ( | bool | _createToken | ) |
Definition at line 372 of file CLevmarConfLexer.cpp.
References mCHAR(), mDIGIT(), mOTHER(), and STRING.
Referenced by nextToken().
00372 { 00373 int _ttype; antlr::RefToken _token; std::string::size_type _begin = text.length(); 00374 _ttype = STRING; 00375 std::string::size_type _saveIndex; 00376 00377 mCHAR(false); 00378 { // ( ... )* 00379 for (;;) { 00380 switch ( LA(1)) { 00381 case 0x61 /* 'a' */ : 00382 case 0x62 /* 'b' */ : 00383 case 0x63 /* 'c' */ : 00384 case 0x64 /* 'd' */ : 00385 case 0x65 /* 'e' */ : 00386 case 0x66 /* 'f' */ : 00387 case 0x67 /* 'g' */ : 00388 case 0x68 /* 'h' */ : 00389 case 0x69 /* 'i' */ : 00390 case 0x6a /* 'j' */ : 00391 case 0x6b /* 'k' */ : 00392 case 0x6c /* 'l' */ : 00393 case 0x6d /* 'm' */ : 00394 case 0x6e /* 'n' */ : 00395 case 0x6f /* 'o' */ : 00396 case 0x70 /* 'p' */ : 00397 case 0x71 /* 'q' */ : 00398 case 0x72 /* 'r' */ : 00399 case 0x73 /* 's' */ : 00400 case 0x74 /* 't' */ : 00401 case 0x75 /* 'u' */ : 00402 case 0x76 /* 'v' */ : 00403 case 0x77 /* 'w' */ : 00404 case 0x78 /* 'x' */ : 00405 case 0x79 /* 'y' */ : 00406 case 0x7a /* 'z' */ : 00407 { 00408 mCHAR(false); 00409 break; 00410 } 00411 case 0x30 /* '0' */ : 00412 case 0x31 /* '1' */ : 00413 case 0x32 /* '2' */ : 00414 case 0x33 /* '3' */ : 00415 case 0x34 /* '4' */ : 00416 case 0x35 /* '5' */ : 00417 case 0x36 /* '6' */ : 00418 case 0x37 /* '7' */ : 00419 case 0x38 /* '8' */ : 00420 case 0x39 /* '9' */ : 00421 { 00422 mDIGIT(false); 00423 break; 00424 } 00425 case 0x23 /* '#' */ : 00426 case 0x24 /* '$' */ : 00427 case 0x25 /* '%' */ : 00428 case 0x26 /* '&' */ : 00429 case 0x27 /* '\'' */ : 00430 case 0x28 /* '(' */ : 00431 case 0x29 /* ')' */ : 00432 case 0x2a /* '*' */ : 00433 case 0x2b /* '+' */ : 00434 case 0x2c /* ',' */ : 00435 case 0x2d /* '-' */ : 00436 case 0x2e /* '.' */ : 00437 case 0x2f /* '/' */ : 00438 case 0x3a /* ':' */ : 00439 case 0x3b /* ';' */ : 00440 case 0x3c /* '<' */ : 00441 case 0x3f /* '?' */ : 00442 case 0x40 /* '@' */ : 00443 case 0x5b /* '[' */ : 00444 case 0x5d /* ']' */ : 00445 case 0x5e /* '^' */ : 00446 case 0x5f /* '_' */ : 00447 case 0x7b /* '{' */ : 00448 case 0x7c /* '|' */ : 00449 case 0x7d /* '}' */ : 00450 case 0x7e /* '~' */ : 00451 { 00452 mOTHER(false); 00453 break; 00454 } 00455 default: 00456 { 00457 goto _loop167; 00458 } 00459 } 00460 } 00461 _loop167:; 00462 } // ( ... )* 00463 _ttype = testLiteralsTable(_ttype); 00464 if ( _createToken && _token==antlr::nullToken && _ttype!=antlr::Token::SKIP ) { 00465 _token = makeToken(_ttype); 00466 _token->setText(text.substr(_begin, text.length()-_begin)); 00467 } 00468 _returnToken = _token; 00469 _saveIndex=0; 00470 }
Here is the call graph for this function:

| void CLevmarConfLexer::mCHAR | ( | bool | _createToken | ) | [protected] |
Definition at line 472 of file CLevmarConfLexer.cpp.
References CHAR.
Referenced by mSTRING().
00472 { 00473 int _ttype; antlr::RefToken _token; std::string::size_type _begin = text.length(); 00474 _ttype = CHAR; 00475 std::string::size_type _saveIndex; 00476 00477 { 00478 matchRange('a','z'); 00479 } 00480 if ( _createToken && _token==antlr::nullToken && _ttype!=antlr::Token::SKIP ) { 00481 _token = makeToken(_ttype); 00482 _token->setText(text.substr(_begin, text.length()-_begin)); 00483 } 00484 _returnToken = _token; 00485 _saveIndex=0; 00486 }
| void CLevmarConfLexer::mDIGIT | ( | bool | _createToken | ) | [protected] |
Definition at line 488 of file CLevmarConfLexer.cpp.
References DIGIT.
Referenced by mINT(), and mSTRING().
00488 { 00489 int _ttype; antlr::RefToken _token; std::string::size_type _begin = text.length(); 00490 _ttype = DIGIT; 00491 std::string::size_type _saveIndex; 00492 00493 matchRange('0','9'); 00494 if ( _createToken && _token==antlr::nullToken && _ttype!=antlr::Token::SKIP ) { 00495 _token = makeToken(_ttype); 00496 _token->setText(text.substr(_begin, text.length()-_begin)); 00497 } 00498 _returnToken = _token; 00499 _saveIndex=0; 00500 }
| void CLevmarConfLexer::mOTHER | ( | bool | _createToken | ) | [protected] |
Definition at line 502 of file CLevmarConfLexer.cpp.
References OTHER.
Referenced by mSTRING().
00502 { 00503 int _ttype; antlr::RefToken _token; std::string::size_type _begin = text.length(); 00504 _ttype = OTHER; 00505 std::string::size_type _saveIndex; 00506 00507 switch ( LA(1)) { 00508 case 0x27 /* '\'' */ : 00509 { 00510 match('\'' /* charlit */ ); 00511 break; 00512 } 00513 case 0x23 /* '#' */ : 00514 { 00515 match('#' /* charlit */ ); 00516 break; 00517 } 00518 case 0x24 /* '$' */ : 00519 { 00520 match('$' /* charlit */ ); 00521 break; 00522 } 00523 case 0x25 /* '%' */ : 00524 { 00525 match('%' /* charlit */ ); 00526 break; 00527 } 00528 case 0x26 /* '&' */ : 00529 { 00530 match('&' /* charlit */ ); 00531 break; 00532 } 00533 case 0x28 /* '(' */ : 00534 { 00535 match('(' /* charlit */ ); 00536 break; 00537 } 00538 case 0x29 /* ')' */ : 00539 { 00540 match(')' /* charlit */ ); 00541 break; 00542 } 00543 case 0x2a /* '*' */ : 00544 { 00545 match('*' /* charlit */ ); 00546 break; 00547 } 00548 case 0x2b /* '+' */ : 00549 { 00550 match('+' /* charlit */ ); 00551 break; 00552 } 00553 case 0x2c /* ',' */ : 00554 { 00555 match(',' /* charlit */ ); 00556 break; 00557 } 00558 case 0x2d /* '-' */ : 00559 { 00560 match('-' /* charlit */ ); 00561 break; 00562 } 00563 case 0x2e /* '.' */ : 00564 { 00565 match('.' /* charlit */ ); 00566 break; 00567 } 00568 case 0x2f /* '/' */ : 00569 { 00570 match('/' /* charlit */ ); 00571 break; 00572 } 00573 case 0x3a /* ':' */ : 00574 { 00575 match(':' /* charlit */ ); 00576 break; 00577 } 00578 case 0x3b /* ';' */ : 00579 { 00580 match(';' /* charlit */ ); 00581 break; 00582 } 00583 case 0x3c /* '<' */ : 00584 { 00585 match('<' /* charlit */ ); 00586 break; 00587 } 00588 case 0x3f /* '?' */ : 00589 { 00590 match('?' /* charlit */ ); 00591 break; 00592 } 00593 case 0x40 /* '@' */ : 00594 { 00595 match('@' /* charlit */ ); 00596 break; 00597 } 00598 case 0x5b /* '[' */ : 00599 { 00600 match('[' /* charlit */ ); 00601 break; 00602 } 00603 case 0x5d /* ']' */ : 00604 { 00605 match(']' /* charlit */ ); 00606 break; 00607 } 00608 case 0x5e /* '^' */ : 00609 { 00610 match('^' /* charlit */ ); 00611 break; 00612 } 00613 case 0x5f /* '_' */ : 00614 { 00615 match('_' /* charlit */ ); 00616 break; 00617 } 00618 case 0x7b /* '{' */ : 00619 { 00620 match('{' /* charlit */ ); 00621 break; 00622 } 00623 case 0x7c /* '|' */ : 00624 { 00625 match('|' /* charlit */ ); 00626 break; 00627 } 00628 case 0x7d /* '}' */ : 00629 { 00630 match('}' /* charlit */ ); 00631 break; 00632 } 00633 case 0x7e /* '~' */ : 00634 { 00635 match('~' /* charlit */ ); 00636 break; 00637 } 00638 default: 00639 { 00640 throw antlr::NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn()); 00641 } 00642 } 00643 if ( _createToken && _token==antlr::nullToken && _ttype!=antlr::Token::SKIP ) { 00644 _token = makeToken(_ttype); 00645 _token->setText(text.substr(_begin, text.length()-_begin)); 00646 } 00647 _returnToken = _token; 00648 _saveIndex=0; 00649 }
| void CLevmarConfLexer::mNUMBER | ( | bool | _createToken | ) |
Definition at line 651 of file CLevmarConfLexer.cpp.
References mINT(), mREAL(), and NUMBER.
Referenced by nextToken().
00651 { 00652 int _ttype; antlr::RefToken _token; std::string::size_type _begin = text.length(); 00653 _ttype = NUMBER; 00654 std::string::size_type _saveIndex; 00655 00656 { 00657 switch ( LA(1)) { 00658 case 0x2b /* '+' */ : 00659 { 00660 match('+' /* charlit */ ); 00661 break; 00662 } 00663 case 0x2d /* '-' */ : 00664 { 00665 match('-' /* charlit */ ); 00666 break; 00667 } 00668 case 0x2e /* '.' */ : 00669 case 0x30 /* '0' */ : 00670 case 0x31 /* '1' */ : 00671 case 0x32 /* '2' */ : 00672 case 0x33 /* '3' */ : 00673 case 0x34 /* '4' */ : 00674 case 0x35 /* '5' */ : 00675 case 0x36 /* '6' */ : 00676 case 0x37 /* '7' */ : 00677 case 0x38 /* '8' */ : 00678 case 0x39 /* '9' */ : 00679 { 00680 break; 00681 } 00682 default: 00683 { 00684 throw antlr::NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn()); 00685 } 00686 } 00687 } 00688 { 00689 bool synPredMatched172 = false; 00690 if (((_tokenSet_0.member(LA(1))) && (_tokenSet_0.member(LA(2))) && (true) && (true) && (true) && (true) && (true) && (true) && (true) && (true))) { 00691 int _m172 = mark(); 00692 synPredMatched172 = true; 00693 inputState->guessing++; 00694 try { 00695 { 00696 mREAL(false); 00697 } 00698 } 00699 catch (antlr::RecognitionException& pe) { 00700 synPredMatched172 = false; 00701 } 00702 rewind(_m172); 00703 inputState->guessing--; 00704 } 00705 if ( synPredMatched172 ) { 00706 mREAL(false); 00707 } 00708 else if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ )) && (true) && (true) && (true) && (true) && (true) && (true) && (true) && (true) && (true)) { 00709 mINT(false); 00710 } 00711 else { 00712 throw antlr::NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn()); 00713 } 00714 00715 } 00716 { 00717 if ((LA(1) == 0x65 /* 'e' */ )) { 00718 { 00719 match('e' /* charlit */ ); 00720 } 00721 { 00722 switch ( LA(1)) { 00723 case 0x2b /* '+' */ : 00724 { 00725 match('+' /* charlit */ ); 00726 break; 00727 } 00728 case 0x2d /* '-' */ : 00729 { 00730 match('-' /* charlit */ ); 00731 break; 00732 } 00733 case 0x30 /* '0' */ : 00734 case 0x31 /* '1' */ : 00735 case 0x32 /* '2' */ : 00736 case 0x33 /* '3' */ : 00737 case 0x34 /* '4' */ : 00738 case 0x35 /* '5' */ : 00739 case 0x36 /* '6' */ : 00740 case 0x37 /* '7' */ : 00741 case 0x38 /* '8' */ : 00742 case 0x39 /* '9' */ : 00743 { 00744 break; 00745 } 00746 default: 00747 { 00748 throw antlr::NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn()); 00749 } 00750 } 00751 } 00752 mINT(false); 00753 } 00754 else { 00755 } 00756 00757 } 00758 if ( _createToken && _token==antlr::nullToken && _ttype!=antlr::Token::SKIP ) {