Parse a string and return the syntax tree.
(self, text: str, debug: bool = False)
| 193 | return self.parse_string(text, debug) |
| 194 | |
| 195 | def parse_string(self, text: str, debug: bool = False) -> NL: |
| 196 | """Parse a string and return the syntax tree.""" |
| 197 | tokens = tokenize.tokenize(text, grammar=self.grammar) |
| 198 | return self.parse_tokens(tokens, debug) |
| 199 | |
| 200 | def _partially_consume_prefix(self, prefix: str, column: int) -> tuple[str, str]: |
| 201 | lines: list[str] = [] |
no test coverage detected