| 65 | } |
| 66 | |
| 67 | void TextProcessing::EatWhiteSpaces() |
| 68 | { |
| 69 | // Read until can |
| 70 | while (_position < _length) |
| 71 | { |
| 72 | // Peek char |
| 73 | char c = PeekChar(); |
| 74 | |
| 75 | // Check if is whitespace |
| 76 | bool isToken = true; |
| 77 | for (int32 i = 0; i < Whitespaces.Count(); i++) |
| 78 | { |
| 79 | if (Whitespaces[i] == c) |
| 80 | { |
| 81 | // Read it |
| 82 | moveForward(); |
| 83 | isToken = false; |
| 84 | break; |
| 85 | } |
| 86 | } |
| 87 | if (isToken) |
| 88 | { |
| 89 | // End |
| 90 | return; |
| 91 | } |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | void TextProcessing::ReadToken(Token* token) |
| 96 | { |