Update lympha

parent 61d8b7fa
......@@ -243,7 +243,7 @@ def mapfunc():
#thename = re.sub("\s+", "", thename.strip())
#if object_list[item].name == binobj.replace(" ","") :
if thename == ("%s" % binobj.replace(" ","")) :
subfactors.append(int(object_list[item].flow))
subfactors.append(int(object_list[item].statement_flow))
sum1 = subfactors.count(1)
sum0 = subfactors.count(0)
if object_list[key].operator1 != None: # and object_list[key].statement_flow == None :
......@@ -407,6 +407,12 @@ def mapfunc():
for l in range(0,len(object_list)):
if object_list[l].name == nexting :
nextstates.append(nexting)
if object_list[key].flow == 0 or object_list[key].statement_flow == 0 :
for nextings in object_list[key].next_list:
for l in range(0,len(object_list)):
if object_list[l].name == nexting :
object_list[l].flow = 0
del starts[:]
#starts = list()
for nexting in nextstates:
......@@ -576,7 +582,7 @@ def lexer():
object_list[key].datatype = "bina"
elif str("0B") in str(sides[1]) :
#elif re.compile(".*0B.*").match(sides[1]) :
object_list[key].flow = 0
object_list[key].statement_flow = 0
object_list[key].datatype = "bina"
......@@ -674,4 +680,4 @@ if __name__=='__main__':
if filecheck == True:
lexer()
else:
print("Please add file names.")
print("Please add file names.")
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment