Returns the next character in the statement, unless the last character has already been processed, in which case, the empty string is returned.
(self)
| 182 | return tokenlist |
| 183 | |
| 184 | def __get_next_char(self): |
| 185 | """Returns the next character in the |
| 186 | statement, unless the last character has already |
| 187 | been processed, in which case, the empty string is |
| 188 | returned. |
| 189 | |
| 190 | """ |
| 191 | if self.__column < len(self.__stmt): |
| 192 | next_char = self.__stmt[self.__column] |
| 193 | self.__column = self.__column + 1 |
| 194 | |
| 195 | return next_char |
| 196 | |
| 197 | else: |
| 198 | return '' |