def build_run_process_follower(self, token): """ version_run_process_follower : RUN IDENTIFIER version_subprocesses_list """ run_process = VersionRunProcess(token[2]) if '*' in token[3]: run_process.all_subprocesses_active = True else: for identifier in token[3]: run_process.active_subprocesses.append(identifier) return run_process
def build_run_process_base(self, token): """ version_run_process_base : RUN IDENTIFIER version_subprocesses_list | RUN IDENTIFIER version_subprocesses_list version_repetition | RUN IDENTIFIER version_subprocesses_list version_repetition version_repetition_channels """ run_process = VersionRunProcess(token[2]) if '*' in token[3]: run_process.all_subprocesses_active = True else: for identifier in token[3]: run_process.active_subprocesses.append(identifier) if len(token) > 4: run_process.repetitions = token[4] if len(token) > 5: for identifier in token[5]: run_process.repeated_channels.append(identifier) return run_process