Beispiel #1
0
  def __repr__(self):
    arg_strings = []

    for name in self.arg_names:
      arg_strings.append("%s : %s" % (name, self.type_env.get(name)))

    return "function %s(%s) => %s:%s" % \
           (self.name, ", ".join(arg_strings),
            self.return_type,
            block_to_str(self.body))
Beispiel #2
0
  def __repr__(self):
    arg_strings = []

    for name in self.arg_names:
      arg_strings.append("%s : %s" % (name, self.type_env.get(name)))

    return "function %s(%s) => %s:%s" % \
           (self.name, ", ".join(arg_strings),
            self.return_type,
            block_to_str(self.body))
Beispiel #3
0
 def __repr__(self):
   return "def %s(%s):%s" % (self.name, self.args, block_to_str(self.body))
Beispiel #4
0
 def __repr__(self):
     return "def %s(%s):%s" % (self.name, self.args, block_to_str(
         self.body))