def read_until_eof(self) -> bool:
if self.read_eof():<EOL><INDENT>return True<EOL><DEDENT>self._stream.save_context()<EOL>while not self.read_eof():<EOL><INDENT>self._stream.incpos()<EOL><DEDENT>return self._stream.validate_context()<EOL>
Consume all the stream. Same as EOF in BNF.