'hm'
This commit is contained in:
parent
1f756a9002
commit
1342bedbba
@ -46,6 +46,7 @@ class automata:
|
|||||||
return False
|
return False
|
||||||
# flatten list of states
|
# flatten list of states
|
||||||
self.state = [item for sublist in self.state for item in sublist]
|
self.state = [item for sublist in self.state for item in sublist]
|
||||||
|
print(self.state, i)
|
||||||
# check if automata is in accepting state
|
# check if automata is in accepting state
|
||||||
return self.check_if_accepted()
|
return self.check_if_accepted()
|
||||||
|
|
||||||
@ -79,4 +80,3 @@ f = open(sys.argv[1], 'r')
|
|||||||
|
|
||||||
for line in f:
|
for line in f:
|
||||||
print(auto.test_string(line))
|
print(auto.test_string(line))
|
||||||
print(auto)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user