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 concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id AE396BB81 for ; Sun, 23 Oct 2005 22:57:29 +0200 (CEST) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id j9NKvThK032654 for ; Sun, 23 Oct 2005 22:57:29 +0200 Received: (qmail invoked by alias); 23 Oct 2005 20:57:29 -0000 Received: from p54A30DFD.dip0.t-ipconnect.de (EHLO [192.168.2.136]) [84.163.13.253] by mail.gmx.net (mp034) with SMTP; 23 Oct 2005 22:57:29 +0200 X-Authenticated: #20477425 From: Michael Wohlwend To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Ocamllex question Date: Sun, 23 Oct 2005 22:58:34 +0200 User-Agent: KMail/1.8 References: <435BD045.1000305@gushee.net> In-Reply-To: <435BD045.1000305@gushee.net> X-Face: S)[vu%Bha1d&ej9GfwAq~7C}A,y[B.uS}+D6'hb~xPwsxymw$fnCOaMe<=?utf-8?q?*bnUajSBR=5Fm=3FR=0A=09?=@V3;iX8[A}z`.%pEQ1r7iZhN8#ktTCBQ}&mkx>=RH&l|l6\]NZI@ MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510232258.34761.micha-1@fantasymail.de> X-Y-GMX-Trusted: 0 X-Miltered: at concorde with ID 435BF939.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocamllex:01 lexbuf:01 lexbuf:01 ...:98 ...:98 wrote:01 dict:01 dict:01 parse:02 parse:02 problem:05 sep:05 sep:05 quite:06 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=SPF_FAIL autolearn=disabled version=3.0.3 Hi, On Sunday 23 October 2005 20:02, Matt Gushee wrote: > > and comment = parse > [ ^ '\n' ] { comment lexbuf } > > | '\n' { SEP; dict lexbuf } I'm not quite sure whether I understood your problem, but... doesn' it help to just return a SEP after a comment: rule dict = parse ... | ',' | '\n' { SEP } | '#' [^ '\n']* '\n' { SEP } ... Michael