def METHOD_NAME(self, text, debug=False):
    """Parse a string and return the syntax tree."""
    tokens = tokenize.generate_tokens(generate_lines(text).next)
    return self.parse_tokens(tokens, debug)