<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse_stream_raw(self, stream, debug=False):
 """Parse a stream and return the syntax tree."""

        tokens = tokenize.generate_tokens(stream.readline)
        return self.parse_tokens(tokens, debug)