def _build_automaton(self): start = State('start') automatons = self.regexs for i in automatons: start.add_epsilon_transition(i) final = start.to_deterministic() return final
def _build_automaton(self): start = State('start') regexs = self.regexs for regex in regexs: start.add_epsilon_transition(regex) return start.to_deterministic()
def _build_automaton(self): start = State('start') for automaton in self.regexs: start.add_epsilon_transition(automaton) return start.to_deterministic()
def _build_automaton(self): start = State('start') # Your code here!!! for x in self.regexs: start.add_epsilon_transition(self.regexs[x]) return start.to_deterministic()