Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fblanqui committed Nov 25, 2024
1 parent eb892e6 commit 28542a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ In symbol declarations or definitions, parameters with no type are assumed to be

It instructs Lambdapi to replace any occurrence of the unqualified identifier ``lp_id`` by ``coq_expr``, which can be any Coq expression. Example: `renaming.lp <https://github.com/Deducteam/lambdapi/blob/master/libraries/renaming.lp>`__.

* ``--requiring <COQ_FILE>`` to add ``Require Import <COQ_FILE>`` at the beginning of the output. ``<COQ_FILE>`` usually needs to contain at least the following definitions:
* ``--requiring <MODNAME>`` to add ``Require Import <MODNAME>`` at the beginning of the output. ``<MODNAME>`` usually needs to contain at least the following definitions:

::

Expand Down
4 changes: 1 addition & 3 deletions src/export/coq.ml
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,7 @@ let set_requiring : string -> unit = fun f -> require := Some f
let print : ast -> unit = fun s ->
let oc = stdout in
begin match !require with
| Some f ->
string oc "Require Export ";
string oc (Filename.chop_extension f); string oc ".\n"
| Some f -> string oc ("Require Export "^f^".\n")
| None -> ()
end;
ast oc s

0 comments on commit 28542a9

Please sign in to comment.