Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View hypernote's full-sized avatar

Jan Borges hypernote

  • Manaus, Amazon, Brazil
View GitHub Profile
import bisect
class NFA(object):
EPSILON = object()
ANY = object()
def __init__(self, start_state):
self.transitions = {}
self.final_states = set()
self._start_state = start_state