'hm'
This commit is contained in:
parent
6a5cbc89ee
commit
fea31a2929
@ -13,7 +13,7 @@ class automata:
|
||||
return('%s\n\n%s\n\n%s\n\n' % (self.storage, self.accepting_states, self.state))
|
||||
|
||||
def add_node(self, line):
|
||||
node = line.split(' ')
|
||||
node = line.replace('\n', '').split(' ')
|
||||
if len(node) == 3:
|
||||
self.storage.append([[node[0], node[2]], node[1]])
|
||||
elif len(node) == 1:
|
||||
|
Loading…
Reference in New Issue
Block a user