MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / Tokenize

Function Tokenize

tests/external/gmock-1.7.0/gtest/scripts/pump.py:382–387  ·  view source on GitHub ↗

A generator that yields the tokens in the given string.

(s)

Source from the content-addressed store, hash-verified

380
381
382def Tokenize(s):
383 """A generator that yields the tokens in the given string."""
384 if s != '':
385 lines = s.splitlines(True)
386 for token in TokenizeLines(lines, Cursor(0, 0)):
387 yield token
388
389
390class CodeNode:

Callers 1

ParseToASTFunction · 0.85

Calls 2

TokenizeLinesFunction · 0.85
CursorClass · 0.85

Tested by

no test coverage detected