This commit is contained in:
deadsmond 2019-11-25 20:06:54 +01:00
parent 1f756a9002
commit 1342bedbba

View File

@ -46,6 +46,7 @@ class automata:
return False
# flatten list of states
self.state = [item for sublist in self.state for item in sublist]
print(self.state, i)
# check if automata is in accepting state
return self.check_if_accepted()
@ -79,4 +80,3 @@ f = open(sys.argv[1], 'r')
for line in f:
print(auto.test_string(line))
print(auto)