| 1838 | } |
| 1839 | |
| 1840 | void CTokenizer::ScanUntilToken(int tokenType) |
| 1841 | { |
| 1842 | CToken* curToken; |
| 1843 | int tokenValue = TK_UNDEFINED; |
| 1844 | while (tokenValue != tokenType) |
| 1845 | { |
| 1846 | curToken = GetToken(); |
| 1847 | tokenValue = curToken->GetType(); |
| 1848 | if (tokenValue == TK_EOF) |
| 1849 | { |
| 1850 | PutBackToken(curToken); |
| 1851 | break; |
| 1852 | } |
| 1853 | if (tokenValue == tokenType) |
| 1854 | { |
| 1855 | PutBackToken(curToken); |
| 1856 | } |
| 1857 | else |
| 1858 | { |
| 1859 | curToken->Delete(); |
| 1860 | } |
| 1861 | } |
| 1862 | } |
| 1863 | |
| 1864 | void CTokenizer::Init(UINT dwFlags) |
| 1865 | { |