From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=NO_RELAYS autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: by yquem.inria.fr (Postfix, from userid 25991) id 3F1B7BC69; Sat, 21 Jul 2007 11:33:17 +0200 (CEST) Date: Sat, 21 Jul 2007 11:33:17 +0200 From: Daniel de Rauglaudre To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Custom camlp4 lexers Message-ID: <20070721093317.GC9664@yquem.inria.fr> References: <200707210824.34230.jon@ffconsultancy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200707210824.34230.jon@ffconsultancy.com> User-Agent: Mutt/1.5.9i X-Spam: no; 0.00; rauglaudre:01 rauglaudre:01 camlp:01 lexers:01 0100,:01 iirc:01 camlp:01 lexers:01 syntax:01 parsers:01 wrote:01 inline:01 caml-list:01 implemented:02 character:04 Hi, On Sat, Jul 21, 2007 at 08:24:34AM +0100, Jon Harrop wrote: > IIRC, there was mention before that camlp4 even allows you to specify lexers > inline. How is this done and are there any examples? Perhaps you think of the specific syntax of parsers of character streams ? I implemented that in camlp5 (previously named camlp4s). See doc at: http://pauillac.inria.fr/~ddr/camlp5/doc/html/lexers.html If interested, camlp5 is downloadable at: http://pauillac.inria.fr/~ddr/camlp5/ -- Daniel de Rauglaudre http://pauillac.inria.fr/~ddr/