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=2.6 required=5.0 tests=AWL,DNS_FROM_RFC_POST, SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 0F9E5BBAF for ; Sun, 8 Mar 2009 09:25:29 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AroBAG8Ps0lA6ba6k2dsb2JhbACUaj8BAQEBCQkKCREDrXKBB45GAQMBA4QCBoMT X-IronPort-AV: E=Sophos;i="4.38,324,1233529200"; d="scan'208";a="25233364" Received: from nf-out-0910.google.com ([64.233.182.186]) by mail1-smtp-roc.national.inria.fr with ESMTP; 08 Mar 2009 09:25:28 +0100 Received: by nf-out-0910.google.com with SMTP id b11so140000nfh.13 for ; Sun, 08 Mar 2009 00:25:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:references:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:cc:x-mailer; bh=LObuHrMN3qVlUDqR57irREKWQeDax7jQKpXLvUt8Pt8=; b=Q/FZ4MvmsOkuR6Cq3bQrU9ixCOY8c5x+obGwKxJjl8dqJxFVXDxHOvHdAPRx9UHQFc HWRYV9RtuF0Ncr5WUxxm/OnF0SkTAHsFrv/SL5QpT3AJ65FkLc1duHzgfLm4zaBvSpBx 2nrNmq3KrTyY9bqyqnwkU28Rw4nHgop0Jp3J4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:cc:x-mailer; b=qicRldvz5yeg8F0b0HyWlXLymPakivQEcFqbQv0hNVKuIjnmqqpToWz2YOPsv+X+CJ ikSO6F2bq9+hJf089Lwos7YmgWf+ceM7Z8igWfrZ7xLoVrxeSvqIAR10khoCA4zJQlDh jUB9GFFJicTl6INaz/8B+YQ9j4EVqs4GQo4gE= Received: by 10.210.11.17 with SMTP id 17mr2538095ebk.96.1236500728324; Sun, 08 Mar 2009 00:25:28 -0800 (PST) Received: from ?10.10.30.5? (94.Red-88-6-143.staticIP.rima-tde.net [88.6.143.94]) by mx.google.com with ESMTPS id 7sm2990547eyb.8.2009.03.08.00.25.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 08 Mar 2009 00:25:28 -0800 (PST) References: <24D11586-4F15-4B6E-8FB7-58651317164D@gmail.com> <46331.52510.qm@web27007.mail.ukl.yahoo.com> <0B508092-FD71-4733-BC95-B6B87A6D3E6B@gmail.com> <154139.25342.qm@web27007.mail.ukl.yahoo.com> Message-Id: <46FCBABD-7E4A-4077-8227-3816FD6D635D@gmail.com> From: Joel Reymont To: Matthieu Wipliez In-Reply-To: <154139.25342.qm@web27007.mail.ukl.yahoo.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Re : Re : [Caml-list] Re: camlp4 stream parser syntax Date: Sun, 8 Mar 2009 08:25:23 +0000 Cc: O'Caml Mailing List X-Mailer: Apple Mail (2.930.3) X-Spam: no; 0.00; camlp:01 parser:01 syntax:01 camlp:01 tokens:01 parser:01 tokens:01 matthieu:01 failwith:01 ocaml:01 wrote:01 parsing:01 caml-list:01 strings:01 grammar:02 How can I make camlp4 parsing case-insensitive? The only approach I can think of so far is to build a really larger set of tokens and use them instead of strings in the parser. Any flag I can flip or way to do this without a large set of tokens? Thanks, Joel On Mar 8, 2009, at 1:08 AM, Matthieu Wipliez wrote: > >> Is the camlp4 grammar parser case-insensitive? >> >> Will both Delay and delay be accepted in the actionDelay rule? >> >> actionDelay: [ [ "delay"; expression -> >> Asthelper.failwith (convert_loc _loc) >> "RVC-CAL does not permit the use of delay." ] ]; > > No, only "delay" is accepted. --- http://tinyco.de Mac, C++, OCaml