class ParseError(Exception):

    """Report an error parsing the document."""
    
    def __init__(self, data):
    	"""Initialize a new exception with data about the error."""
        self.data = data
        
    def __str__(self):
    	"""Return the error data as a string."""
        return str(self.data)

def parse(lines):
    """Take a 148ML document as input, and return a parsed version represented
    as a list of nested lists."""
    print lines
    # Fill here!
    
if __name__ == '__main__':

    # The second example from the assignment description
    doc = '<html>\n\
          <head><title>Example\n\
          </title> </head>\n\
          <body>quiet<CAPSLOCK>  LOUD       </CAPSLOCK> quiet</body>\n\
          </html>'

    print parse(doc)
    

