Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

coqdep(1) [debian man page]

COQ(1)							      General Commands Manual							    COQ(1)

NAME
coqdep - Compute inter-module dependencies for Coq and Caml programs SYNOPSIS
coqdep [ -w ] [ -I directory ] [ -coqlib directory ] [ -c ] [ -i ] [ -D ] [ -slash ] filename ... directory ... DESCRIPTION
coqdep compute inter-module dependencies for Coq and Caml programs, and prints the dependencies on the standard output in a format readable by make. When a directory is given as argument, it is recursively looked at. Dependencies of Coq modules are computed by looking at Require commands (Require, Require Export, Require Import), Declare ML Module com- mands and Load commands. Dependencies relative to modules from the Coq library are not printed. Dependencies of Caml modules are computed by looking at open directives and the dot notation module.value. OPTIONS
-c Prints the dependencies of Caml modules. (On Caml modules, the behaviour is exactly the same as ocamldep). -w Prints a warning if a Coq command Declare ML Module is incorrect. (For instance, you wrote `Declare ML Module "A".', but the module A contains #open "B"). The correct command is printed (see option -D). The warning is printed on standard error. -D This commands looks for every command Declare ML Module of each Coq file given as argument and complete (if needed) the list of Caml modules. The new command is printed on the standard output. No dependency is computed with this option. -slash Prints paths using a slash instead of the OS specific separator. This option is useful when developping under Cygwin. -I directory The files .v .ml .mli of the directory directory are taken into account during the calculus of dependencies, but their own dependen- cies are not printed. -coqlib directory Indicates where is the Coq library. The default value has been determined at installation time, and therefore this option should not be used under normal circumstances. SEE ALSO
ocamlc(1), coqc(1), make(1). NOTES
Lexers (for Coq and Caml) correctly handle nested comments and strings. The treatment of symbolic links is primitive. If two files have the same name, in two different directories, a warning is printed on standard error. There is no way to limit the scope of the recursive search for directories. EXAMPLES
Consider the files (in the same directory): A.ml B.ml C.ml D.ml X.v Y.v and Z.v where + D.ml contains the commands `open A', `open B' and `type t = C.t' ; + Y.v contains the command `Require X' ; + Z.v contains the commands `Require X' and `Declare ML Module "D"'. To get the dependencies of the Coq files: example% coqdep -I . *.v Z.vo: Z.v ./X.vo ./D.cmo Y.vo: Y.v ./X.vo X.vo: X.v With a warning: example% coqdep -w -I . *.v Z.vo: Z.v ./X.vo ./D.cmo Y.vo: Y.v ./X.vo X.vo: X.v ### Warning : In file Z.v, the ML modules declaration should be ### Declare ML Module "A" "B" "C" "D". To get only the Caml dependencies: example% coqdep -c -I . *.ml D.cmo: D.ml ./A.cmo ./B.cmo ./C.cmo D.cmx: D.ml ./A.cmx ./B.cmx ./C.cmx C.cmo: C.ml C.cmx: C.ml B.cmo: B.ml B.cmx: B.ml A.cmo: A.ml A.cmx: A.ml BUGS
Please report any bug to coq-bugs@pauillac.inria.fr Coq tools 28 March 1995 COQ(1)

Check Out this Related Man Page

COQ-TEX(1)						      General Commands Manual							COQ-TEX(1)

NAME
coq-tex - Process Coq phrases embedded in LaTeX files SYNOPSIS
coq-tex [ -o output-file ] [ -n line-width ] [ -image coq-image ] [ -w ] [ -v ] [ -sl ] [ -hrule ] [ -small ] input-file ... DESCRIPTION
The coq-tex filter extracts Coq phrases embedded in LaTeX files, evaluates them, and insert the outcome of the evaluation after each phrase. Three LaTeX environments are provided to include Coq code in the input files: coq_example The phrases between egin{coq_example} and end{coq_example} are evaluated and copied into the output file. Each phrase is followed by the response of the toplevel loop. coq_example* The phrases between egin{coq_example*} and end{coq_example*} are evaluated and copied into the output file. The responses of the toplevel loop are discarded. coq_eval The phrases between egin{coq_eval} and end{coq_eval} are silently evaluated. They are not copied into the output file, and the responses of the toplevel loop are discarded. The resulting LaTeX code is stored in the file file.v.tex if the input file has a name of the form file.tex, otherwise the name of the out- put file is the name of the input file with `.v.tex' appended. The files produced by coq-tex can be directly processed by LaTeX. Both the Coq phrases and the toplevel output are typeset in typewriter font. OPTIONS
-o output-file Specify the name of a file where the LaTeX output is to be stored. A dash `-' causes the LaTeX output to be printed on standard out- put. -n line-width Set the line width. The default is 72 characters. The responses of the toplevel loop are folded if they are longer than the line width. No folding is performed on the Coq input text. -image coq-image Cause the file coq-image to be executed to evaluate the Coq phrases. By default, this is the command coqtop without specifying any path which is used to evaluate the Coq phrases. -w Cause lines to be folded on a space character whenever possible, avoiding word cuts in the output. By default, folding occurs at the line width, regardless of word cuts. -v Verbose mode. Prints the Coq answers on the standard output. Useful to detect errors in Coq phrases. -sl Slanted mode. The Coq answers are written in a slanted font. -hrule Horizontal lines mode. The Coq parts are written between two horizontal lines. -small Small font mode. The Coq parts are written in a smaller font. CAVEATS
The egin... and end... phrases must sit on a line by themselves, with no characters before the backslash or after the closing brace. Each Coq phrase must be terminated by `.' at the end of a line. Blank space is accepted between `.' and the newline, but any other charac- ter will cause coq-tex to ignore the end of the phrase, resulting in an incorrect shuffling of the responses into the phrases. (The responses ``lag behind''.) SEE ALSO
coqtop (1). 29 March 1995 COQ-TEX(1)
Man Page

Featured Tech Videos