'hm'
This commit is contained in:
parent
34f586495a
commit
ef4606bf92
@ -21,12 +21,12 @@ class automata:
|
||||
for i in text:
|
||||
self.state = self.get_node_transition([self.state, i])
|
||||
if self.state == None:
|
||||
return 'FALSE'
|
||||
return 'FALSE none %s' % text
|
||||
|
||||
if self.state in self.accepting_states:
|
||||
return 'TRUE'
|
||||
return 'TRUE %s' % text
|
||||
else:
|
||||
return 'FALSE'
|
||||
return 'FALSE %s' % text
|
||||
|
||||
def get_node_transition(self, query):
|
||||
for i in self.storage:
|
||||
|
Loading…
Reference in New Issue
Block a user