'hm'
This commit is contained in:
parent
9f526498a9
commit
98787b1efb
@ -3,7 +3,8 @@ import sys
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
||||||
class automate:
|
class automata:
|
||||||
|
def __init__(self):
|
||||||
self.storage = []
|
self.storage = []
|
||||||
self.accepting_states = []
|
self.accepting_states = []
|
||||||
self.state = '0'
|
self.state = '0'
|
||||||
@ -27,7 +28,6 @@ class automate:
|
|||||||
else:
|
else:
|
||||||
return 'FALSE'
|
return 'FALSE'
|
||||||
|
|
||||||
|
|
||||||
def get_node_transition(self, query):
|
def get_node_transition(self, query):
|
||||||
for i in self.storage:
|
for i in self.storage:
|
||||||
if i[0] == query:
|
if i[0] == query:
|
||||||
@ -35,7 +35,7 @@ class automate:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
auto = automate()
|
auto = automata()
|
||||||
|
|
||||||
for line in sys.stdin:
|
for line in sys.stdin:
|
||||||
auto.add_node(line)
|
auto.add_node(line)
|
||||||
|
Loading…
Reference in New Issue
Block a user