'Parse a string and return the syntax tree.'

def parse_string(self, text, debug=False):

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