From 10af47a5790987ee5211bac88c3a16396f30bcb0 Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Wed, 26 Nov 2014 18:41:34 +0100 Subject: Feedback: API cleaned up, documented and made user extensible --- lib/pp.mli | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/pp.mli') 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} *) -- cgit v1.2.3