code: def compress(self):
          
          for ast_token in self.ast_tokens:
              if type(ast_token) in self.dispatcher:  # pylint: disable=unidiomatic-typecheck
                  self.dispatcher[type(ast_token)](ast_token)
              else:
                  self.dispatcher['default'](ast_token)
docs: Main function of compression.