diff options
| author | Alasdair Armstrong | 2017-11-08 15:06:13 +0000 |
|---|---|---|
| committer | Alasdair Armstrong | 2017-11-08 15:06:13 +0000 |
| commit | 2def55466c941aa8d4b933ecd93a7d3eb739fce8 (patch) | |
| tree | 8c68136ab787dca5aea4aaf8d352c3730285a136 /src/pretty_print_lem.ml | |
| parent | e43324b207b13d7e4094e2561b4e4a84c76e1299 (diff) | |
Allow for different extern names for different backends
For example:
val test = { ocaml: "test_ocaml", lem: "test_lem" } : unit -> unit
val main : unit -> unit
function main () = {
test ();
}
for a backend not explicitly provided, the extern name would be simply
"test" in this case, i.e. the string version of the id.
Also fixed some bugs in the ocaml backend.
Diffstat (limited to 'src/pretty_print_lem.ml')
| -rw-r--r-- | src/pretty_print_lem.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pretty_print_lem.ml b/src/pretty_print_lem.ml index b9ef1aec..0bb73aa5 100644 --- a/src/pretty_print_lem.ml +++ b/src/pretty_print_lem.ml @@ -739,7 +739,7 @@ let doc_exp_lem, doc_let_lem = | _ -> let call = match annot with | Some (env, _, _) when Env.is_extern f env -> - string (Env.get_extern f env) + string (Env.get_extern f env "lem") | _ -> doc_id_lem f in let argspp = match args with | [arg] -> expV true arg |
