This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python | |
# -*- coding: UTF-8 -*- | |
# pylint: disable=no-value-for-parameter | |
import click # package for easy cli generation | |
import subprocess # package to execute the shell, | |
import re | |
import os | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import defaultdict | |
class NFA: | |
def __init__(self, q0, qF): | |
# set start and set of final positions | |
self.q0 = q0 | |
self.qF = set(qF) |