Lines Matching refs:tok
101 self.tok: Union[None, str] = None
137 while self.tok is not None:
139 if self.tok == '#':
263 - ``.tok`` represents the token type. See below for values.
272 ``.tok`` holds the single character and ``.val`` is None.
279 be when ``skip_comment`` is False. ``.tok`` is "#", and
285 ``.tok`` is "'", the single quote. ``.val`` contains the
290 ``.tok`` is either "t" or "f", ``.val`` will be the
295 ``.tok`` and ``.val`` will both be None at EOF.
298 self.tok = self.src[self.cursor]
303 if self.tok == '#':
311 elif self.tok in '{}:,[]':
313 elif self.tok == "'":
347 elif self.tok == '\n':
349 self.tok = None
353 elif not self.tok.isspace():
362 if self.tok == '}':
365 if self.tok != "'":
369 assert isinstance(key, str) # Guaranteed by tok == "'"
372 if self.tok != ':':
378 if self.tok == '}':
381 if self.tok != ',':
384 if self.tok != "'":
389 if self.tok == ']':
392 if self.tok not in tuple("{['tf"):
397 if self.tok == ']':
400 if self.tok != ',':
406 if self.tok == '{':
409 elif self.tok == '[':
412 elif self.tok in tuple("'tf"):
422 if self.tok != '#':