(self, stream: IO[str])
| 61 | |
| 62 | class Reader: |
| 63 | def __init__(self, stream: IO[str]) -> None: |
| 64 | self.string = stream.read() |
| 65 | self.position = Position.start() |
| 66 | self.mark = Position.start() |
| 67 | |
| 68 | def has_next(self) -> bool: |
| 69 | return self.position.chars < len(self.string) |