(curr_token, expected)
| 261 | yield Token(None, None, lineno + 1, 1) # EOF |
| 262 | |
| 263 | def unexpected(curr_token, expected): |
| 264 | category, value, lineno, pos = curr_token |
| 265 | value = repr(value) if value is not None else "EOF" |
| 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: |
no test coverage detected