From 1c4e0ece041f87cc0c328c94270f2b23facc8b77 Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Thu, 8 Mar 2018 16:02:52 +0100 Subject: Print symbols as symbols. This allows us to replacing them by their address in valex and additionally checking them. Bug 22438 --- backend/AisAnnot.mli | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'backend/AisAnnot.mli') diff --git a/backend/AisAnnot.mli b/backend/AisAnnot.mli index 59676b26..6bed2eaa 100644 --- a/backend/AisAnnot.mli +++ b/backend/AisAnnot.mli @@ -33,3 +33,12 @@ val validate_ais_annot: Env.t -> string * int -> string -> C.exp list -> unit that no volatile variables or float expressions are used as well as that no illegal format specifier is used in the [txt] *) + +val json_ais_annot: ('a -> string) -> string -> string -> 'a AST.builtin_arg list -> t list +(** [json_ais_annot lbl preg spreg txt args] prints the ais annotation [txt] were the format + specifiers are replace according to their type: + -e: general expressions + -l: l-value expressions + -here: the address of the ais annotation [lbl] + for json export. +*) -- cgit