code: def parse(self, data):
          
          try:
              return self.yacc.parse(data, lexer=self.lex)
          except:
              return None
docs: Parses a license list and returns a License or None if it failed.