(self, func: Callable[..., T], *args: object)
| 278 | return res |
| 279 | |
| 280 | def positive_lookahead(self, func: Callable[..., T], *args: object) -> T: |
| 281 | mark = self._mark() |
| 282 | ok = func(*args) |
| 283 | self._reset(mark) |
| 284 | return ok |
| 285 | |
| 286 | def negative_lookahead(self, func: Callable[..., object], *args: object) -> bool: |
| 287 | mark = self._mark() |