Beispiel #1
0
 def __init__(self,
              function_name: str,
              function_to_call: Callable,
              obligatory_arguments: List[object] = []):
     Function.__init__(self, f'{function_name}()')
     self.function = function_to_call
     self.obligatory_arguments = obligatory_arguments
Beispiel #2
0
 def __init__(self, global_memory):
     Function.__init__(
         self,
         'for(values, function, separator_first, separator_last, *args)')
     self.global_memory = global_memory
Beispiel #3
0
 def __init__(self, global_memory):
     Function.__init__(
         self,
         'for_entry(slots, function, separator_first, separator_last)')
     self.global_memory = global_memory
Beispiel #4
0
 def __init__(self, global_memory: GlobalMemory):
     Function.__init__(
         self, 'for_entry_list(slots, function, value_sep, value_sep_last, '
         'slot_sep, slot_sep_last)')
     self.global_memory = global_memory