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

Function consume

easygraph/readwrite/gml.py:268–271  ·  view source on GitHub ↗
(curr_token, category, expected)

Source from the content-addressed store, hash-verified

266 raise EasyGraphError(f"expected {expected}, found {value} at ({lineno}, {pos})")
267
268 def consume(curr_token, category, expected):
269 if curr_token.category == category:
270 return next(tokens)
271 unexpected(curr_token, expected)
272
273 def parse_dict(curr_token):
274 # dict start

Callers 1

parse_dictFunction · 0.85

Calls 1

unexpectedFunction · 0.85

Tested by

no test coverage detected