From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id CAA20048; Mon, 26 May 2003 02:50:21 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id CAA20082 for ; Mon, 26 May 2003 02:50:20 +0200 (MET DST) Received: from hosting.commandprompt.com ([207.173.200.199]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h4Q0oJH15784 for ; Mon, 26 May 2003 02:50:19 +0200 (MET DST) Received: from respighi.local. (pool-151-199-48-185.bos.east.verizon.net [151.199.48.185]) (authenticated) by hosting.commandprompt.com (8.11.6/8.11.6) with ESMTP id h4Q0bIt08831; Sun, 25 May 2003 17:37:18 -0700 Date: Sun, 25 May 2003 20:51:31 -0400 Subject: Re: [Caml-list] generating a call-graph Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v543) Cc: caml-list@inria.fr To: "Yaron M. Minsky" From: Jeff Henrikson In-Reply-To: <52762.141.155.88.179.1053707680.squirrel@minsky-primus.homeip.net> Message-Id: <313803D1-8F14-11D7-A6F1-00039375801A@yahoo.com> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.543) X-Spam: no; 0.00; henrikson:01 jehenrik:01 caml-list:01 invocation:01 ocamldep:01 camlp:01 mlast:01 semicolon:01 ocaml:01 caml:01 tree:02 essentially:02 module:03 string:03 anybody:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > Does anyone know a way of generating a call-graph from a set of ocaml > sources? What I want to do is, at a minimum, get a list of all the > functions that could be called as a result of a given function > invocation. > Essentially, I'm looking for dependency information on the > function-call > level, similar to what ocamldep provides on the module level. I have a tree walker function generator for caml expressions in camlp4 that would make short work of this. But I don't know how to get an MLast datum for an entire file. Anybody know how to do this? It seems that MLast.The following does not work: Grammar.Entry.parse str_item (Stream.of_string "let f x = x*x;; let g x = x+x;;");; (It stops at the semicolon and returns just the f definition.) Jeff Henrikson ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners