Browse Source

Cleanup and minor fixes

Yentl Van Tendeloo 7 years ago
parent
commit
d88e3785b6
3 changed files with 3 additions and 5 deletions
  1. 0 2
      bootstrap/modelling.alc
  2. 2 2
      models/AL_to_py.alc
  3. 1 1
      wrappers/modelverse_SCCD.py

+ 0 - 2
bootstrap/modelling.alc

@@ -510,12 +510,10 @@ Element function construct_model_list(model : Element, list : Element):
 		elif (command == "instantiate_attribute_ref"):
 		elif (command == "instantiate_attribute_ref"):
 			instantiate_attribute_ref(model, list_pop_final(list), list_pop_final(list), list_pop_final(list))
 			instantiate_attribute_ref(model, list_pop_final(list), list_pop_final(list), list_pop_final(list))
 		elif (command == "instantiate_attribute_code"):
 		elif (command == "instantiate_attribute_code"):
-			log("Add code attribute")
 			instantiate_attribute_code(model, list_pop_final(list), list_pop_final(list), construct_function_list(trim_AL_constructors(list)))
 			instantiate_attribute_code(model, list_pop_final(list), list_pop_final(list), construct_function_list(trim_AL_constructors(list)))
 		elif (command == "instantiate_link"):
 		elif (command == "instantiate_link"):
 			instantiate_link(model, list_pop_final(list), list_pop_final(list), list_pop_final(list), list_pop_final(list))
 			instantiate_link(model, list_pop_final(list), list_pop_final(list), list_pop_final(list), list_pop_final(list))
 		elif (command == "add_code_model"):
 		elif (command == "add_code_model"):
-			log("Add code model")
 			export_node(list_pop_final(list), construct_function_list(trim_AL_constructors(list)))
 			export_node(list_pop_final(list), construct_function_list(trim_AL_constructors(list)))
 		else:
 		else:
 			log("Modelling error: did not understand command " + command)
 			log("Modelling error: did not understand command " + command)

+ 2 - 2
models/AL_to_py.alc

@@ -232,8 +232,8 @@ Boolean function main(model : Element):
 	log("Finding initial function...")
 	log("Finding initial function...")
 	function = set_pop(allInstances(model, "AL/Initial"))
 	function = set_pop(allInstances(model, "AL/Initial"))
 	function = set_pop(allAssociationDestinations(model, function, "AL/initial_funcdef"))
 	function = set_pop(allAssociationDestinations(model, function, "AL/initial_funcdef"))
-	log("Initial function: " + cast_id(model["model"][function])
-	code = code + "main = func_" + cast_id(model["model"][function] + "\n"
+	log("Initial function: " + cast_id(model["model"][function]))
+	code = code + "main = func_" + cast_id(model["model"][function]) + "\n"
 
 
 	// Found the main function, though we only have the name of the function to assign...
 	// 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!
 	// What we can do is reassign main to that function!

+ 1 - 1
wrappers/modelverse_SCCD.py

@@ -1,7 +1,7 @@
 """
 """
 Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
 Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
 
 
-Date:   Thu Apr  5 07:25:36 2018
+Date:   Thu Apr  5 07:27:30 2018
 
 
 Model author: Yentl Van Tendeloo
 Model author: Yentl Van Tendeloo
 Model name:   MvK Server
 Model name:   MvK Server