diff options
author | aspiwack <aspiwack@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2012-08-24 17:36:36 +0000 |
---|---|---|
committer | aspiwack <aspiwack@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2012-08-24 17:36:36 +0000 |
commit | 7993d50d0d1dd029b34745e1ee089d9cf7c5ffbd (patch) | |
tree | c63659baaa5fbb525c6fc1cb4ad882e8e6b55e1c /plugins/extraction/table.mli | |
parent | 6a2f9c59ea44d754050b4a2ccb624adcc846924d (diff) |
Experimental support for a comment in the files' preamble in extraction.
Scheme comments are output on a single line because Ocaml's Format
module which serves as a backend to Pp has an integer, rather than a string
as identation value, so we cannot make it so that each new line in the
comment starts with ";; ".
I've tried something with Pp.ifb but it was hackish at best and had somewhat
strange results.
Known bug: as Pp.std_ppcmds is non-persistent, the comment is actually printed
only once per Extraction command, even if it outputs several files.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15763 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'plugins/extraction/table.mli')
-rw-r--r-- | plugins/extraction/table.mli | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/extraction/table.mli b/plugins/extraction/table.mli index b17f83715..16c2275f1 100644 --- a/plugins/extraction/table.mli +++ b/plugins/extraction/table.mli @@ -136,6 +136,10 @@ val optims : unit -> opt_flag val conservative_types : unit -> bool +(*s A comment to print at the beginning of the files *) + +val file_comment : unit -> string + (*s Target language. *) type lang = Ocaml | Haskell | Scheme |