diff options
| author | Xavier Leroy | 2019-06-24 17:08:11 +0200 |
|---|---|---|
| committer | Maxime Dénès | 2020-01-08 15:07:15 +0100 |
| commit | bfb28c7720d9101e2caedff0c1f1f2cdbf0bad65 (patch) | |
| tree | efe2b91a00c554e79c17cbaddf2f36b8c0ad24ed /plugins/extraction/common.mli | |
| parent | 3cdbd61f3acf0722c92f8192425eb1a677270b08 (diff) | |
Support extraction of Coq's string type to OCaml's string type
Instead of the default extraction to OCaml's "char list" type.
Diffstat (limited to 'plugins/extraction/common.mli')
| -rw-r--r-- | plugins/extraction/common.mli | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/extraction/common.mli b/plugins/extraction/common.mli index e4e9c4c527..d13ac7926a 100644 --- a/plugins/extraction/common.mli +++ b/plugins/extraction/common.mli @@ -81,3 +81,11 @@ val mk_ind : string -> string -> MutInd.t val is_native_char : ml_ast -> bool val get_native_char : ml_ast -> char val pp_native_char : ml_ast -> Pp.t + +(** Special hack for constants of type String.string : if an + [Extract Inductive string => string] has been declared, then + the constants are directly turned into string literals *) + +val is_native_string : ml_ast -> bool +val get_native_string : ml_ast -> string +val pp_native_string : ml_ast -> Pp.t |
