From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 275AAD45F for ; Wed, 2 Nov 2005 08:01:14 +0100 (CET) Received: from mta.conjury.org (grymling.conjury.org [69.12.155.90]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jA271D5M004639 for ; Wed, 2 Nov 2005 08:01:13 +0100 Received: from localhost (localhost [127.0.0.1]) by mta.conjury.org (Postfix) with ESMTP id 1340C3E57A for ; Tue, 1 Nov 2005 23:01:12 -0800 (PST) Received: from mta.conjury.org ([127.0.0.1]) by localhost (grymling.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00241-06 for ; Tue, 1 Nov 2005 23:01:08 -0800 (PST) Received: from [10.0.1.12] (station.conjury.org [69.12.155.91]) by mta.conjury.org (Postfix) with ESMTP id 5BA183E560 for ; Tue, 1 Nov 2005 23:01:08 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v734) In-Reply-To: <20051102054504.1EA1CD464@yquem.inria.fr> References: <20051102054504.1EA1CD464@yquem.inria.fr> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <20C6B0F9-BB65-4035-B6DF-0CA7C1431820@conjury.org> Content-Transfer-Encoding: 7bit From: j h woodyatt Subject: Re: examples using parser combinator in Pagoda CF library? Date: Tue, 1 Nov 2005 21:54:16 -0800 To: caml-list@yquem.inria.fr X-Mailer: Apple Mail (2.734) X-Virus-Scanned: by amavisd-new at conjury.org X-Miltered: at nez-perce with ID 43686439.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; woodyatt:01 jhw:01 parser:01 combinator:01 ocamlyacc:01 parser:01 combinators:01 wetware:01 jhw:01 ocaml:01 combinators:01 2005,:98 wrote:01 sourceforge:01 sourceforge:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 On 01 Nov 2005, at 21:45, caml-list-request@yquem.inria.fr wrote: > > I'm currently using ocamlex and ocamlyacc but have recently > heard of parser combinators. Searching the net I found the > Pagoda Core Foundation library which has this: > > http://www.wetware.com/jhw/src/pagoda/doc/cf/Cf_parser.html > > Its obviously nice to have documentation, but its also nice to > have working examples. Anyone have any? The newest versions of this code are in the OCaml Network Application Environment (NAE) project on SourceForge.Net: You should look at the Cf_uri module for an example of how to use the Cf_parser combinators. --james