From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA28667 for caml-red; Tue, 13 Jun 2000 18:47:35 +0200 (MET DST) 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 DAA09363 for ; Tue, 13 Jun 2000 03:06:07 +0200 (MET DST) Received: from csla.csl.sri.com (csla.csl.sri.com [192.12.33.2]) by concorde.inria.fr (8.10.0/8.10.0) with ESMTP id e5D166D07601 for ; Tue, 13 Jun 2000 03:06:06 +0200 (MET DST) Received: from cylinder.csl.sri.com (IDENT:filliatr@cylinder.csl.sri.com [130.107.15.112]) by csla.csl.sri.com (8.9.1/8.9.1) with ESMTP id SAA11227 for ; Mon, 12 Jun 2000 18:06:05 -0700 (PDT) Received: (from filliatr@localhost) by cylinder.csl.sri.com (8.9.3/8.8.7) id SAA19168; Mon, 12 Jun 2000 18:06:04 -0700 X-Authentication-Warning: cylinder.csl.sri.com: filliatr set sender to filliatr@cylinder.csl.sri.com using -f From: Jean-Christophe Filliatre MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <14661.35068.32016.305322@cylinder.csl.sri.com> Date: Mon, 12 Jun 2000 18:06:04 -0700 (PDT) To: caml-list@inria.fr Subject: ocamlwc: a wc program for ocaml sources X-Mailer: VM 6.62 under Emacs 20.4.1 Reply-To: filliatr@csl.sri.com (Jean-Christophe Filliatre) Sender: weis Dear ocamlers, ocamlwc is a small program to compute the number of lines of code and documentation in ocaml sources. It is particularly useful when one wants to evaluate the size of a program heavily documented (for instance with ocamlweb :-) Then standard tools like wc really become too coarse. Some features of ocamlwc: - skip the header, if any (can be turned off) - do not count the empty lines (even inside comments) - correctly counts the lines mixing code and comments - print the percentage of documentation (option); beware, it's harsh! ocamlwc is freely distributed under GPL on the following page: http://www.lri.fr/~filliatr/software.en.html The documented code can be reached directly at: http://www.lri.fr/~filliatr/ftp/ocaml/misc/ocamlwc.ps.gz -- Jean-Christophe Filliatre ==[ Français ]======================================================== ocamlwc est un petit programme pour compter le nombre de lignes de code et de commentaires dans des fichiers source ocaml. Il s'avère particulièrement utile pour évaluer la taille de programmes ocaml bien documentés (par exemple avec ocamlweb :-). Quelques caractéristiques d'ocamlwc : - ne tient pas compte de l'entête, s'il y en a un (peut être désactivé) - ne compte pas les lignes vides (y compris dans les commentaire) - décompte correctement les lignes contenant code et commentaire - imprime la proportion de documentation (attention, c'est sans pitié !) ocamlwc est librement distribué sous license GPL à l'adresse suivante : http://www.lri.fr/~filliatr/software.fr.html Une version PostScript du code documenté peut être trouvée directement à l'adresse suivante : http://www.lri.fr/~filliatr/ftp/ocaml/misc/ocamlwc.ps.gz -- Jean-Christophe Filliatre