code: def Parse(factory, file):
      
  
      entities = []
  
      while 1:
          # Just gets the whole struct nicely formatted
          data = GetNextStruct(file)
  
          if not data:
              break
  
          entities.extend(ProcessStruct(factory, data))
  
      return entities
docs: Parses the input file and returns C code and corresponding header file.