(self, regex: Pattern[str])
| 95 | return result |
| 96 | |
| 97 | def read_regex(self, regex: Pattern[str]) -> Sequence[str]: |
| 98 | match = regex.match(self.string, self.position.chars) |
| 99 | if match is None: |
| 100 | raise Error("read_regex: Pattern not found") |
| 101 | self.position.advance(self.string[match.start() : match.end()]) |
| 102 | return match.groups() |
| 103 | |
| 104 | |
| 105 | def decode_escapes(regex: Pattern[str], string: str) -> str: |
no test coverage detected