MCPcopy Create free account
hub / github.com/RetiredWizard/PyDOS / __get_next_char

Method __get_next_char

PyBasic/lexer.py:184–198  ·  view source on GitHub ↗

Returns the next character in the statement, unless the last character has already been processed, in which case, the empty string is returned.

(self)

Source from the content-addressed store, hash-verified

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 ''

Callers 1

tokenizeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected