|
@@ -8,7 +8,6 @@ Element function generic_compile(code : String, port : String):
|
|
|
|
|
|
String response
|
|
|
response = comm_get(port)
|
|
|
- log("Got response: " + response)
|
|
|
if (response == "OK"):
|
|
|
Integer count
|
|
|
Element lst
|
|
@@ -38,10 +37,9 @@ Element function compile_code(code : String):
|
|
|
return read_root()!
|
|
|
|
|
|
else:
|
|
|
- log("Compiling: " + list_to_string(list))
|
|
|
return construct_function_list(list)!
|
|
|
|
|
|
-Element function compile_model(code : String, metamodel : Element):
|
|
|
+Element function compile_model(code : String, model : Element):
|
|
|
String port
|
|
|
port = comm_connect("compiler")
|
|
|
comm_set(port, "model")
|
|
@@ -53,5 +51,4 @@ Element function compile_model(code : String, metamodel : Element):
|
|
|
return read_root()!
|
|
|
|
|
|
else:
|
|
|
- log("Compiling: " + list_to_string(list))
|
|
|
- return construct_model_list(metamodel, list)!
|
|
|
+ return construct_model_list(model, list)!
|