aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/pp.mli
diff options
context:
space:
mode:
authorGravatar Enrico Tassi <Enrico.Tassi@inria.fr>2014-11-26 18:41:34 +0100
committerGravatar Enrico Tassi <Enrico.Tassi@inria.fr>2014-11-27 16:06:54 +0100
commit10af47a5790987ee5211bac88c3a16396f30bcb0 (patch)
tree9c260091569dd7cc4c9d8897cf6d2d8115918d5e /lib/pp.mli
parent894a3d16471f19bd527730490ea242e218b62ff6 (diff)
Feedback: API cleaned up, documented and made user extensible
Diffstat (limited to 'lib/pp.mli')
-rw-r--r--lib/pp.mli7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/pp.mli b/lib/pp.mli
index 0293822da..fd529e1d7 100644
--- a/lib/pp.mli
+++ b/lib/pp.mli
@@ -160,16 +160,17 @@ val is_message : Xml_datatype.xml -> bool
* Morally the parser gets a string and an edit_id, and gives back an AST.
* Feedbacks during the parsing phase are attached to this edit_id.
* The interpreter assignes an exec_id to the ast, and feedbacks happening
- * during interpretation are attached to the exec_id (still unimplemented,
- * since the two phases are performed sequentially) *)
+ * during interpretation are attached to the exec_id.
+ * Only one among state_id and edit_id can be provided. *)
val feedback :
- ?state_id:Feedback.state_id ->
+ ?state_id:Feedback.state_id -> ?edit_id:Feedback.edit_id ->
?route:Feedback.route_id -> Feedback.feedback_content -> unit
val set_id_for_feedback :
?route:Feedback.route_id -> Feedback.edit_or_state_id -> unit
val set_feeder : (Feedback.feedback -> unit) -> unit
+val get_id_for_feedback : unit -> Feedback.edit_or_state_id * Feedback.route_id
(** {6 Utilities} *)