소스 검색

Fix problem with constant node in global

Yentl Van Tendeloo 7 년 전
부모
커밋
cf7c7407b2
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      bootstrap/constructors.alc
  2. 1 1
      wrappers/modelverse_SCCD.py

+ 1 - 1
bootstrap/constructors.alc

@@ -115,7 +115,7 @@ String function construct_global(model : Element, list : Element):
 		elif (op == "const"):
 			log("CONST")
 			value = instantiate_value(model, "constant", "", create_value(!constant))
-			create_al_link(model, "constant_node", value, list_pop_final(list), "node")
+			create_al_link(model, "constant_node", value, instantiate_value(model, "Element", "", list_pop_final(list)), "node")
 		log("DONE")
 		create_al_link(model, "assign_value", assign, value, "value")
 

+ 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)
 
-Date:   Thu May 17 14:58:25 2018
+Date:   Thu May 17 15:56:18 2018
 
 Model author: Yentl Van Tendeloo
 Model name:   MvK Server