code: def process_contents(self, contents, fname=None):
          
          self.stack = []
          self.dispatch_table = self.default_table.copy()
          self.current_file = fname
          self.tuples = self.tupleize(contents)
  
          self.initialize_result(fname)
          while self.tuples:
              t = self.tuples.pop(0)
              # Uncomment to see the list of tuples being processed (e.g.,
              # to validate the CPP lines are being translated correctly).
              #print(t)
              self.dispatch_table[t[0]](t)
          return self.finalize_result(fname)
docs: Pre-processes a file contents.
  
          This is the main internal entry point.