|
@@ -427,7 +427,7 @@ String function add_AL(model : Element, element : Element):
|
|
|
if (is_physical_action(elem)):
|
|
|
type = cast_a2s(elem)
|
|
|
else:
|
|
|
- type = "Any"
|
|
|
+ type = "PrimitiveType"
|
|
|
|
|
|
// Add the node itself
|
|
|
elem_name = "__" + cast_id2s(elem)
|
|
@@ -445,7 +445,7 @@ String function add_AL(model : Element, element : Element):
|
|
|
add_AL_links(model, todo, elem, type, "body", "")
|
|
|
add_AL_links(model, todo, elem, type, "next", "")
|
|
|
elif (type == "assign"):
|
|
|
- add_AL_links(model, todo, elem, type, "var", "")
|
|
|
+ add_AL_links(model, todo, elem, type, "var", "resolve")
|
|
|
add_AL_links(model, todo, elem, type, "value", "")
|
|
|
add_AL_links(model, todo, elem, type, "next", "")
|
|
|
elif (type == "break"):
|
|
@@ -457,7 +457,7 @@ String function add_AL(model : Element, element : Element):
|
|
|
elif (type == "resolve"):
|
|
|
add_AL_links(model, todo, elem, type, "var", "")
|
|
|
elif (type == "access"):
|
|
|
- add_AL_links(model, todo, elem, type, "var", "")
|
|
|
+ add_AL_links(model, todo, elem, type, "var", "resolve")
|
|
|
elif (type == "constant"):
|
|
|
add_AL_links(model, todo, elem, type, "node", "")
|
|
|
elif (type == "output"):
|
|
@@ -481,18 +481,6 @@ String function add_AL(model : Element, element : Element):
|
|
|
|
|
|
return reverseKeyLookup(model["model"], element)!
|
|
|
|
|
|
-Void function add_constraint(model : Element, element : String, constraint : Action):
|
|
|
- // Add local constraints to an element
|
|
|
- Element attr_type
|
|
|
- String link_name
|
|
|
- String constraint_name
|
|
|
-
|
|
|
- constraint_name = add_AL(model, constraint)
|
|
|
- attr_type = find_attribute_type(model, element, "constraint")
|
|
|
- instantiate_link(model, attr_type, "", element, constraint_name)
|
|
|
-
|
|
|
- return!
|
|
|
-
|
|
|
Void function construct_model():
|
|
|
String command
|
|
|
|
|
@@ -531,8 +519,6 @@ Void function construct_model():
|
|
|
instantiate_attribute_code(global_models[input()], input(), input(), construct_function())
|
|
|
elif (command == "instantiate_link"):
|
|
|
instantiate_link(global_models[input()], input(), input(), input(), input())
|
|
|
- elif (command == "add_constraint"):
|
|
|
- add_constraint(global_models[input()], input(), construct_function())
|
|
|
elif (command == "model_define_attribute"):
|
|
|
model_define_attribute(global_models[input()], input(), input(), input(), input())
|
|
|
elif (command == "initialize_SCD"):
|
|
@@ -593,9 +579,6 @@ Element function construct_model_raw(metamodel : Element):
|
|
|
elif (command == "instantiate_link"):
|
|
|
input()
|
|
|
instantiate_link(model, input(), input(), input(), input())
|
|
|
- elif (command == "add_constraint"):
|
|
|
- input()
|
|
|
- add_constraint(model, input(), construct_function())
|
|
|
elif (command == "import_node"):
|
|
|
input()
|
|
|
input()
|