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 39EDABBD7 for ; Fri, 5 Aug 2005 01:12:05 +0200 (CEST) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.206]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j74NC4O8016089 for ; Fri, 5 Aug 2005 01:12:04 +0200 Received: by rproxy.gmail.com with SMTP id a36so554178rnf for ; Thu, 04 Aug 2005 16:12:04 -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:mime-version:content-type:content-transfer-encoding:content-disposition; b=evZkUyBVWrMl6Rv7Qxh6f4i9ldBFe0VqSiMJOD+/oQWmIo+1ts8uaK8kKVKMJ37ORV7BQQoMs9piVDl8hlmF8mBf2y3qLVkDLgpP2dSlJeRqf4CIUYRodpXfx7YSlATyzIx4YVQUkllW6lCUqQqFQIvaSjIQdI3tv9pCGrHYBxc= Received: by 10.38.104.46 with SMTP id b46mr1063472rnc; Thu, 04 Aug 2005 16:12:04 -0700 (PDT) Received: by 10.38.209.44 with HTTP; Thu, 4 Aug 2005 16:12:04 -0700 (PDT) Message-ID: Date: Fri, 5 Aug 2005 11:12:04 +1200 From: Jonathan Roewen Reply-To: Jonathan Roewen To: caml-list@yquem.inria.fr Subject: [Caml-list] ocamllex problem Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Miltered: at nez-perce with ID 42F2A0C4.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 spaces:01 strings:01 btw:02 match:02 parse:02 string:03 string:03 let: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 Hi, Here's my .mll file, to match IRC strings. The problem is that it's including spaces, which I assume it shouldn't. let letter =3D [^' '] rule token =3D parse | ':'((letter|' ')* as s) { STRING s } | letter+ as s { STRING s } | [' ']+ { token lexbuf } | eof { EOL } (BTW, this is for matching rule 2). Maybe I'm just retarded, but this should work, correct? Jonathan