(self, message: str, filename: str = "<unknown>")
| 290 | return not ok |
| 291 | |
| 292 | def make_syntax_error(self, message: str, filename: str = "<unknown>") -> SyntaxError: |
| 293 | tok = self._tokenizer.diagnose() |
| 294 | return SyntaxError(message, (filename, tok.start[0], 1 + tok.start[1], tok.line)) |
| 295 | |
| 296 | |
| 297 | def simple_parser_main(parser_class: type[Parser]) -> None: |