MCPcopy Create free account
hub / github.com/easy-graph/Easy-Graph / parse_dict

Function parse_dict

easygraph/readwrite/gml.py:273–280  ·  view source on GitHub ↗
(curr_token)

Source from the content-addressed store, hash-verified

271 unexpected(curr_token, expected)
272
273 def parse_dict(curr_token):
274 # dict start
275 curr_token = consume(curr_token, Pattern.DICT_START, "'['")
276 # dict contents
277 curr_token, dct = parse_kv(curr_token)
278 # dict end
279 curr_token = consume(curr_token, Pattern.DICT_END, "']'")
280 return curr_token, dct
281
282 def parse_kv(curr_token):
283 dct = defaultdict(list)

Callers 1

parse_kvFunction · 0.85

Calls 2

consumeFunction · 0.85
parse_kvFunction · 0.85

Tested by

no test coverage detected