Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

codegraph: skeleton files

  • Loading branch information...
commit af18decfb7671e84f89172d3f07f4417916b3c24 1 parent e0d6ec1
@aryx aryx authored
View
1  .gitignore
@@ -341,3 +341,4 @@ external/ocamlbdb/libcamlbdb.a
/lang_opa/parsing/lexer_opa.ml
/lang_opa/parsing/parser_opa.ml
/lang_opa/parsing/parser_opa.mli
+/codegraph
View
41 Makefile
@@ -22,7 +22,6 @@ PROGS=pfff
PROGS+=sgrep
PROGS+=spatch
PROGS+=stags
-PROGS+=pm_depend
PROGS+=ppp
@@ -39,6 +38,7 @@ endif
ifeq ($(FEATURE_VISUAL), 1)
PROGS+=codemap
+PROGS+=codegraph
endif
OPTPROGS= $(PROGS:=.opt)
@@ -141,7 +141,7 @@ ifeq ($(FEATURE_GRAPHICS), 1)
endif
ifeq ($(FEATURE_VISUAL),1)
-VISUALDIR=visual
+VISUALDIRS=visual code_graph
endif
ifeq ($(FEATURE_FACEBOOK),1)
@@ -280,7 +280,7 @@ MAKESUBDIRS=commons \
lang_css/parsing \
lang_web/parsing \
lang_text \
- $(VISUALDIR) \
+ $(VISUALDIRS) \
$(FACEBOOKDIR)
INCLUDEDIRS=$(MAKESUBDIRS) \
@@ -401,25 +401,6 @@ clean::
rm -f stags
#------------------------------------------------------------------------------
-# pm_depend targets
-#------------------------------------------------------------------------------
-
-#SYSLIBS_PM= external/phylomel/src/lib.cma
-
-# external/ocamlgtk/src/lablgtk.cma \
-# external/ocamlcairo/src/cairo.cma \
-# external/ocamlcairo/src/cairo_lablgtk.cma \
-
-pm_depend: $(LIBS) main_pm_depend.cmo
- $(OCAMLC) $(CUSTOM) -o $@ $(BASICSYSLIBS) $^
-
-pm_depend.opt: $(LIBS:.cma=.cmxa) main_pm_depend.cmx
- $(OCAMLOPT) $(STATIC) -o $@ $(BASICSYSLIBS:.cma=.cmxa) $^
-
-clean::
- rm -f pm_depend
-
-#------------------------------------------------------------------------------
# sgrep targets
#------------------------------------------------------------------------------
@@ -553,6 +534,22 @@ clean::
rm -f codemap
#------------------------------------------------------------------------------
+# codegraph (was pm_depend)
+#------------------------------------------------------------------------------
+
+#SYSLIBS_PM= external/phylomel/src/lib.cma
+OBJS4=code_graph/lib.cma
+
+codegraph: $(LIBS) commons/commons_gui.cma $(OBJS4) main_codegraph.cmo
+ $(OCAMLC) -thread $(CUSTOM) -o $@ $(SYSLIBS) threads.cma $(SYSLIBS3) $(GTKLOOP) $^
+
+codegraph.opt: $(LIBS:.cma=.cmxa) commons/commons_gui.cmxa $(OBJS4:.cma=.cmxa) main_codegraph.cmx
+ $(OCAMLOPT) -thread $(STATIC) -o $@ $(SYSLIBS:.cma=.cmxa) threads.cmxa $(SYSLIBS3:.cma=.cmxa) $(GTKLOOP:.cmo=.cmx) $^
+
+clean::
+ rm -f codegraph
+
+#------------------------------------------------------------------------------
# pfff_misc targets
#------------------------------------------------------------------------------
pfff_misc: $(LIBS) main_misc.cmo
View
6 changes.txt
@@ -1,6 +1,10 @@
-*- org -*-
-* 0.20 (Q2 2012) (??)
+* 0.20 (Q2 2012) (?? codegraph?)
+
+** sgrep:
+
+*** metavariables for XHP attributes
* 0.19 (Q1 2012) (pfff_logger)
View
0  code_graph/controller3.ml
No changes.
View
0  code_graph/model3.ml
No changes.
View
0  code_graph/view3.ml
No changes.
View
42 main_pm_depend.ml → main_codegraph.ml
@@ -7,33 +7,35 @@ open Common
(*****************************************************************************)
(* Purpose *)
(*****************************************************************************)
-(* A module/package dependency visualizer generating data for
- * different graph visualizer (e.g. gephi, guess).
+(* A package/module/functions/... dependency visualizer using mainly
+ * Dependency Structure Matrix (DSM).
*
- * todo? have a backend for graphviz?
- * todo? use phylomel?
- * todo? use cairo?
- *
- * usage:
+ * It can also generate data for different graph visualizer (e.g.
+ * gephi, guess).
+ *
+ * todo? have a backend for graphviz? todo? use phylomel? todo? use
+ * cairo?
+ *
+ * usage: $ codegraph
+ * old:
* $ pm_depend [-lang X] [-with-extern] [-depth n] -o filename /path/to/dir
*
- * related work:
- * - http://lattix.com/
- * the startup built from the original paper on DSM at oopsla
+ * related work: - http://lattix.com/ the startup built from the
+ * original paper on DSM at oopsla. Hierarchical dependency matrix is
+ * nice. (hierarchical graphs would be nice too, but they are more
+ * complex to draw).
*
- * - ndepend.com,
- * http://www.ndepend.com/Doc_VS_Arch.aspx
- * http://codebetter.com/patricksmacchia/2009/08/24/identify-code-structure-patterns-at-a-glance/
+ * - ndepend.com, http://www.ndepend.com/Doc_VS_Arch.aspx
+ * http://codebetter.com/patricksmacchia/2009/08/24/identify-code-structure-patterns-at-a-glance/
*
- * - structure101
- * http://www.headwaysoftware.com/products/index.php#page-top
+ * - structure101
+ * http://www.headwaysoftware.com/products/index.php#page-top
*
- * - http://mcis.polymtl.ca/~bram/makao/index.html
- * also use GUESS and prolog :)
+ * - http://mcis.polymtl.ca/~bram/makao/index.html also use GUESS and
+ * prolog :)
*
- * - google search images: dependency+graph+visualization, get many
- * links from there
- *)
+ * - google search images: dependency+graph+visualization, get many
+ * links from there *)
(*****************************************************************************)
(* Flags *)
Please sign in to comment.
Something went wrong with that request. Please try again.