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 WAA13458 for caml-red; Mon, 4 Dec 2000 22:59:24 +0100 (MET) 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 IAA16790 for ; Mon, 4 Dec 2000 08:44:43 +0100 (MET) Received: from ext.lri.fr (ext.lri.fr [129.175.15.4]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id eB47igP20322 for ; Mon, 4 Dec 2000 08:44:42 +0100 (MET) Received: from pc803.lri.fr (IDENT:root@pc803 [129.175.8.114]) by ext.lri.fr (8.9.3/jtpda-5.3.2) with ESMTP id IAA08135 ; Mon, 4 Dec 2000 08:44:40 +0100 (MET) Received: by pc803.lri.fr (8.9.3/feuille) id IAA30420 ; Mon, 4 Dec 2000 08:44:41 +0100 X-Authentication-Warning: localhost.localdomain: filliatr set sender to filliatr@pc803 using -f From: Jean-Christophe Filliatre MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14891.19305.126181.31436@pc803> Date: Mon, 4 Dec 2000 08:44:41 +0100 (MET) To: Laurent Reveillere Cc: caml-list@inria.fr Subject: Re: Parsing ANSI C using OCAML In-Reply-To: <3A260936.17880B58@labri.u-bordeaux.fr> References: <3A260936.17880B58@labri.u-bordeaux.fr> X-Mailer: VM 6.49 under Emacs 20.4.1 Reply-To: Jean-Christophe.Filliatre@lri.fr (Jean-Christophe Filliatre) Sender: weis@pauillac.inria.fr In his message of Thu November 30, 2000, Laurent Reveillere writes: > I have to build a lexer/parser for the ANSI C language. > Does anyone now if such a tool exists in OCAML? I don't know of such a lexer/parser. But you can find a lot of lex/yacc grammars for ANSI C on the web, which can be easily turned into ocamllex/ocamlyacc grammars. Here is such a site: http://www.lysator.liu.se/c/ANSI-C-grammar-y.html Hope this helps, -- Jean-Christophe FILLIATRE mailto:Jean-Christophe.Filliatre@lri.fr http://www.lri.fr/~filliatr