|
@@ -114,7 +114,8 @@ class ModelVisitor(Visitor):
|
|
|
f.write(constraint)
|
|
|
f.flush()
|
|
|
directory = os.path.realpath(__file__).rsplit(os.sep, 1)[0]
|
|
|
- self.constructors.extend(["add_constraint", self.current_model, self.current_element] + do_compile(".constraint.alc", directory + "/../grammars/actionlanguage.g", "CS"))
|
|
|
+ compiled = do_compile(".constraint.alc", directory + "/../grammars/actionlanguage.g", "CS")
|
|
|
+ self.constructors.extend(["add_constraint", self.current_model, self.current_element] + compiled)
|
|
|
|
|
|
def visit_model_attr_instance(self, tree):
|
|
|
children = tree.get_children("MODEL_ID")
|