def __str__(self): typecode_to_name = { 'int32': 'int', 'float64': 'double', 'float32': 'float', 'string': 'string', 'int64': 'long', 'bool': 'bool' } p = print_out() p + 'function: ' if self.result_type is None: p + 'void' else: p + typecode_to_name[self.result_type] p + ' ' p + self.name p + '(' first = True for x in self.input_parameters: if first: first = False else: p + ', ' p + typecode_to_name[x.datatype] p + ' ' p + x.name p + ')' if self.output_parameters: p + '\n' p + 'output: ' first = True for x in self.output_parameters: if first: first = False else: p + ', ' p + typecode_to_name[x.datatype] p + ' ' p + x.name if not self.result_type is None: p + ', ' p + typecode_to_name[self.result_type] p + ' ' p + '__result' return p.string
def out(self): return print_out()
def out(self): return print_out()