MCPcopy Create free account
hub / github.com/IncideDigital/Mistica / tokenparser

Function tokenparser

utils/bitstring.py:549–648  ·  view source on GitHub ↗

Divide the format string into tokens and parse them. Return stretchy token and list of [initialiser, length, value] initialiser is one of: hex, oct, bin, uint, int, se, ue, 0x, 0o, 0b etc. length is None if not known, as is value. If the token is in the keyword dictionary (keys) th

(fmt, keys=None, token_cache={})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

__new__Method · 0.85
_converttobitstringMethod · 0.85
_readlistMethod · 0.85
readMethod · 0.85
packFunction · 0.85

Calls 5

expand_bracketsFunction · 0.85
structparserFunction · 0.85
joinMethod · 0.80
splitMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected