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 PAA08933; Thu, 20 Nov 2003 15:08:17 +0100 (MET) 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 PAA09618 for ; Thu, 20 Nov 2003 15:08:16 +0100 (MET) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hAKE8F110718 for ; Thu, 20 Nov 2003 15:08:15 +0100 (MET) Received: from stratocaster.home (c-24-3-150-197.client.comcast.net[24.3.150.197]) by comcast.net (sccrmhc13) with ESMTP id <2003112014081401600t339he>; Thu, 20 Nov 2003 14:08:14 +0000 Received: from ecc by stratocaster.home with local (Exim 3.36 #1 (Debian)) id 1AMpTi-0004zv-00 for ; Thu, 20 Nov 2003 09:08:14 -0500 Date: Thu, 20 Nov 2003 09:08:14 -0500 To: caml-list@inria.fr Subject: Re: [Caml-list] Any Java parser written in OCaml? Message-ID: <20031120140814.GA7982@localhost> Mail-Followup-To: caml-list@inria.fr References: <20031120015342.GA8229@seas.upenn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031120015342.GA8229@seas.upenn.edu> User-Agent: Mutt/1.5.4i From: "Eric C. Cooper" X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 peng:99 ocaml:01 ocaml:01 nov:01 tar:01 ast:02 parser:02 parser:02 overhead:03 wrote:03 wrote:03 parse:04 cooper:06 cooper:06 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, Nov 19, 2003 at 08:53:43PM -0500, Peng Li wrote: > I am trying to do something with standard Java programs. All I need > is to parse Java programs, do some transformation with the AST, and > pretty print it. > > I am tempted to use OCaml, but there would be too much overhead if I > write everything from scratch. Is there any publicly available OCaml > code that I can use for parsing/pretty printing Java programs? Here is a Java parser and pretty printer that I wrote in OCaml a couple of years ago: http://www.cs.cmu.edu/~ecc/joust.tar.gz -- Eric C. Cooper e c c @ c m u . e d u ------------------- 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