Refactor the ambiguity tests a bit, see #70

This commit is contained in:
Dave Halter committed 2019-07-13 20:15:56 +02:00
1 parent 0032bae041
commit e723b3e74b
2 files changed
+22 -38

No files matched your search

+3
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):