Refactor the ambiguity tests a bit, see #70

This commit is contained in:
Dave Halter
2019-07-13 20:14:52 +02:00
parent 0032bae041
commit e723b3e74b
2 changed files with 22 additions and 38 deletions

View File

@@ -141,6 +141,9 @@ class NFAArc(object):
self.next = next_
self.nonterminal_or_string = nonterminal_or_string
def __repr__(self):
return '<%s: %s>' % (self.__class__.__name__, self.nonterminal_or_string)
class NFAState(object):
def __init__(self, from_rule):