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 E945EBC2A for ; Fri, 5 Aug 2005 01:53:56 +0200 (CEST) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.194]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j74NruZA019602 for ; Fri, 5 Aug 2005 01:53:56 +0200 Received: by rproxy.gmail.com with SMTP id a36so559429rnf for ; Thu, 04 Aug 2005 16:53:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=E1kMQZ8hvXifp2FFkDpWryOdkbwUXJ1RwFVoSvYIeG0ogmg7uChxkLJ+ajWIwxSyW2u5Di8Oq6IHT9U3aeyM12LXQo23NHbTK0s76q/NRFcqUuYcSowPe1cI5LwVlFNzVqoUsGbkWZ0L5yvpjVWO9fzHWjH+T3SNMmHsV0HufKU= Received: by 10.38.97.9 with SMTP id u9mr1072204rnb; Thu, 04 Aug 2005 16:53:55 -0700 (PDT) Received: by 10.38.209.44 with HTTP; Thu, 4 Aug 2005 16:53:55 -0700 (PDT) Message-ID: Date: Fri, 5 Aug 2005 11:53:55 +1200 From: Jonathan Roewen Reply-To: Jonathan Roewen To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] ocamllex problem In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Miltered: at nez-perce with ID 42F2AA94.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocamllex:01 mll:01 token:01 token:01 lexbuf:01 eol:01 wrote:01 spaces:01 strings:01 btw:02 match:02 parse:02 string:03 string:03 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=RCVD_BY_IP autolearn=disabled version=3.0.3 Yes, I'm retarded. Ignore me ;-) On 8/5/05, Jonathan Roewen wrote: > Hi, >=20 > Here's my .mll file, to match IRC strings. The problem is that it's > including spaces, which I assume it shouldn't. >=20 > let letter =3D [^' '] >=20 > rule token =3D parse > | ':'((letter|' ')* as s) { STRING s } > | letter+ as s { STRING s } > | [' ']+ { token lexbuf } > | eof { EOL } >=20 > (BTW, this is for matching rule 2). Maybe I'm just retarded, but this > should work, correct? >=20 > Jonathan >