(self, regex: Pattern[str])
| 88 | return result |
| 89 | |
| 90 | def read_regex(self, regex: Pattern[str]) -> Sequence[str]: |
| 91 | match = regex.match(self.string, self.position.chars) |
| 92 | if match is None: |
| 93 | raise Error("read_regex: Pattern not found") |
| 94 | self.position.advance(self.string[match.start():match.end()]) |
| 95 | return match.groups() |
| 96 | |
| 97 | |
| 98 | def decode_escapes(regex: Pattern[str], string: str) -> str: |
no test coverage detected