From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 11D59BC8C for ; Thu, 27 Jan 2005 11:20:18 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j0RAKH9X030301 for ; Thu, 27 Jan 2005 11:20:17 +0100 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 LAA15752 for ; Thu, 27 Jan 2005 11:20:16 +0100 (MET) Received: from ext.lri.fr (ext.lri.fr [129.175.15.4]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j0RAKGxd030298 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 27 Jan 2005 11:20:16 +0100 Received: from localhost (localhost [127.0.0.1]) by ext.lri.fr (Postfix) with ESMTP id 6CCD719E76E; Thu, 27 Jan 2005 11:20:16 +0100 (CET) Received: from ext.lri.fr ([127.0.0.1]) by localhost (ext.lri.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07578-05; Thu, 27 Jan 2005 11:20:16 +0100 (CET) Received: from smtp.lri.fr (serveur3-5 [129.175.3.5]) by ext.lri.fr (Postfix) with ESMTP id 5965019E61D; Thu, 27 Jan 2005 11:20:16 +0100 (CET) Received: from pc8-142 (pc8-142 [129.175.8.142]) by smtp.lri.fr (Postfix) with ESMTP id E549ECED9B; Thu, 27 Jan 2005 11:20:15 +0100 (CET) Received: from filliatr by pc8-142 with local (Exim 3.36 #1 (Debian)) id 1Cu6l6-0001YX-00; Thu, 27 Jan 2005 11:20:16 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16888.49247.996632.225091@gargle.gargle.HOWL> Date: Thu, 27 Jan 2005 11:20:15 +0100 To: skaller@users.sourceforge.net Cc: Radu Grigore , "yjc01@doc.ic.ac.uk" , caml-list Subject: Re: [Caml-list] index of substring In-Reply-To: <1106818582.6734.154.camel@pelican.wigram> References: <1106786478.41f838aecb7dd@www.doc.ic.ac.uk> <7f8e92aa05012622441fce509b@mail.gmail.com> <1106818582.6734.154.camel@pelican.wigram> X-Mailer: VM 7.18 under Emacs 21.3.1 From: Jean-Christophe Filliatre X-Virus-Scanned: by amavisd-new at lri.fr X-Miltered: at concorde with ID 41F8C061.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 41F8C060.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 filliatre:01 filliatre:01 lri:01 ocamllex:01 ocaml:01 ocamllex:01 lexbuf:01 lexbuf:01 ...:98 ...:98 writes:01 supported:01 thread:02 parse:02 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: skaller writes: > > > > Ocamllex is definitely the easiest. > > however by itself this will not supported nested > comments which Ocaml allows .. :) What's wrong with this way of handling nested comments with ocamllex: ====================================================================== | "(*" { comment lexbuf; ... } ... and comment = parse | "(*" { comment lexbuf; comment lexbuf } | "*)" { () } | _ { comment lexbuf } ====================================================================== (I may have misunderstood the issue here, since I didn't follow this thread in details...) -- Jean-Christophe