forked from xavierleroy/coq2html
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from yoshihiro503/yoshihiro503@file-dependenci…
…es-graph The dependency graph on index.html
- Loading branch information
Showing
11 changed files
with
538 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Ocamldot was written by Trevor Jim. It is in the public domain; use | ||
it however you like, at your own risk. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Try to automatically guess whether we are running under Windows. | ||
# Set WIN32=true manually if this doesn't work. | ||
# | ||
ifeq (${OSTYPE},cygwin32) # Cygwin Beta 19 | ||
WIN32=true | ||
else | ||
ifeq (${OSTYPE},cygwin) # Cygwin Beta 20 | ||
WIN32=true | ||
endif | ||
endif | ||
|
||
ifdef WIN32 | ||
EXE=.exe | ||
else # UNIX | ||
EXE= | ||
endif | ||
|
||
ocamldot$(EXE): ocamldot.mll | ||
ocamllex ocamldot.mll | ||
ocamlc -annot -o $@ ocamldot.ml | ||
|
||
clean: | ||
$(RM) ocamldot$(EXE) ocamldot.ml *.cmi *.cmo *.o *.obj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Ocamldot generates program dependency graphs for ocaml programs. | ||
|
||
The dependency graph output by ocamldot can be rendered by a separate | ||
program, dot. Dot is freely available from | ||
|
||
http://www.research.att.com/sw/tools/graphviz/ | ||
|
||
Ocamldot is designed to process the output of ocamldep. A typical use | ||
would be | ||
|
||
ocamldep *.ml | ocamldot > dep.dot | ||
|
||
or | ||
|
||
ocamldep *.ml > .depend | ||
ocamldot .depend > dep.dot | ||
|
||
This will output a dot graph into the file dep.dot. You can then use | ||
the program dotty to view, edit, and print the graph. | ||
|
||
Ocamldot has the following options: | ||
|
||
-fullgraph draw the full graph (default is to draw only the kernel) | ||
-landscape output in landscape format (default is portrait) | ||
-lr draw graph from left to right (default is top to bottom) | ||
-r <r> use <r> as a root in the graph; nodes reachable from <r> | ||
will be shown | ||
|
||
(The transitive kernel of a dag is the smallest subset of the dag | ||
whose transitive closure is the same as the transitive closure of the | ||
dag. For example, the kernel of A->B, A->C, B->C is just the two | ||
edges A->B, B->C.) | ||
|
||
-Trevor Jim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
.TH OCAMLDOT 1 | ||
.SH NAME | ||
ocamldot \- generate dependency graphs of ocaml programs | ||
.SH SYNOPSIS | ||
.B ocamldot | ||
.I | ||
.RI "[options] <dependency-file>" | ||
.SH "DESCRIPTION" | ||
This manual page documents briefly the | ||
.BR ocamldot | ||
command. | ||
.PP | ||
.B ocamldot | ||
generates program dependency graphs for ocaml programs. The | ||
dependency graph output by ocamldot can be rendered by a separate | ||
program, \fIdot\fR. | ||
.P | ||
Ocamldot is designed to process the output of ocamldep. A typical use would be | ||
.P | ||
ocamldep *.ml | ocamldot > dep.dot | ||
.P | ||
or | ||
.P | ||
ocamldep *.ml > .depend | ||
.br | ||
ocamldot .depend > dep.dot | ||
.SH OPTIONS | ||
.TP | ||
.B \-fullgraph | ||
Draw the full graph (default is to draw only the kernel) | ||
.TP | ||
.B \-landscape | ||
Output in landscape format (default is portrait) | ||
.TP | ||
.B \-lr | ||
Draw graph from left to right (default is top to bottom) | ||
.TP | ||
.B \-r <r> | ||
Use \fI<r>\fR as a root in the graph; nodes reachable from \fI<r>\fR | ||
will be shown. | ||
.P | ||
The transitive kernel of a dag is the smallest subset of the dag whose transitive closure is the same as the transitive closure of the dag. | ||
For example, the kernel of A->B, A->C, B->C is just the two edges A->B, B->C. | ||
|
||
.SH SEE ALSO | ||
.BR ocamldep (1), | ||
.BR dot(1) | ||
.P | ||
\fIhttp://www.research.att.com/~trevor/ocamldot\fR. | ||
|
||
.SH AUTHOR | ||
Trevor Jim <[email protected]> |
Oops, something went wrong.