瀏覽代碼

Fix AL2PY code to compile again

Yentl Van Tendeloo 7 年之前
父節點
當前提交
82b2ae0ffe
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      models/AL_to_py.alc

+ 4 - 4
models/AL_to_py.alc

@@ -230,10 +230,10 @@ Boolean function main(model : Element):
 		code = code + code_print(function_element, 1)
 
 	log("Finding initial function...")
-	initial_function = set_pop(allInstances(model, "AL/Initial"))
-	initial_function = set_pop(allAssociationDestinations(model, function, "AL/initial_funcdef"))
-	log("Initial function: " + initial_function)
-	code = code + "main = func_" + initial_function + "\n"
+	function = set_pop(allInstances(model, "AL/Initial"))
+	function = set_pop(allAssociationDestinations(model, function, "AL/initial_funcdef"))
+	log("Initial function: " + function)
+	code = code + "main = func_" + function + "\n"
 
 	// Found the main function, though we only have the name of the function to assign...
 	// What we can do is reassign main to that function!