예제 #1
0
파일: xntm.py 프로젝트: 01majo60/16-12
 def _validate_transition_symbols_length(self, length, paths):
     for tape_symbols in paths.keys():
         length1 = len(tape_symbols)
         if length != length1:
             raise exceptions.Badcounttapes(
                 'zlý počet pások : ({}) v prechodovej funkcii'.format(
                     tape_symbols))
예제 #2
0
파일: xdtm.py 프로젝트: 01majo60/18
 def _validate_transition_length(self, length):
     for state, paths in self.transitions.items():
         for result in paths.values():
             length1 = len(result)
             if length != length1:
                 raise exceptions.Badcounttapes(
                     'zlý počet pások : ({}) v prechodovej funkcii'.format(
                         result))