|
@@ -173,3 +173,13 @@ Also, by using external services, it becomes possible to rely on trusted parsers
|
|
|
|
|
|
Users of the *compile_code* and *compile_model* functions are never exposed to the use of an external service: it looks exactly like any other function call.
|
|
|
Nonetheless, there is a small difference: when the external service encounters a problem, or is simply not running, the functions will not be able to operate, even though the input is correct.
|
|
|
+In any case, the compile_code and compile_model operations return the root element when they encounter a problem.
|
|
|
+This problem could be anything, such as a syntax error or a semantical analysis error.
|
|
|
+Otherwise, the functions return the action language function and model, respectively.
|
|
|
+
|
|
|
+Before you can execute these functions, the HUTN compilation service must be running, which can be done by executing::
|
|
|
+
|
|
|
+ >>> python scripts/HUTN_service.py
|
|
|
+
|
|
|
+The service will connect to the Modelverse specified in its configuration (i.e., the *init* call).
|
|
|
+It stays connected until the *STOP* input is given on *stdin*.
|