(curr_token, category, expected)
| 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 |
no test coverage detected