From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id pA60wNOC019657 for ; Sun, 6 Nov 2011 01:58:23 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnEBANjatU7RVde2kGdsb2JhbABDqHCBGAgiAQEBAQkJDQcUBCGBcgEBAQEDEgIsARsdAQMMBgULOyIBEQEFARwGNYdomAQKi1SCY4NwPYhwAgEECoM9hWQEiAmMGI0/PYN/ X-IronPort-AV: E=Sophos;i="4.69,462,1315173600"; d="scan'208";a="117163587" Received: from mail-ey0-f182.google.com ([209.85.215.182]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 06 Nov 2011 01:58:18 +0100 Received: by eyd10 with SMTP id 10so4819483eyd.27 for ; Sat, 05 Nov 2011 17:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=VYmVHcOXyd9rRmvKllI8eLK2lvsNe+WVx4Ll6sU1/FA=; b=XXL3Mu9H78mJ6XmIgJaciwl86v8hatb07A/BB+zsL4i8IqGJcOT+wsBvHge/37Ij8H YTp0suyRIwzvZeYOkLS32V6fjyWQgqrCOmjaOxiUUwUjvL9/gCHuYTZSTuGmK8POZ3wU EGrzahjAUMpCVWhDqDqVOsQ8KD2x7qfousjeU= MIME-Version: 1.0 Received: by 10.14.11.215 with SMTP id 63mr1903966eex.42.1320541096760; Sat, 05 Nov 2011 17:58:16 -0700 (PDT) Received: by 10.14.95.197 with HTTP; Sat, 5 Nov 2011 17:58:16 -0700 (PDT) In-Reply-To: References: <20111103091646.GA24501@solaria.dimino.org> Date: Sun, 6 Nov 2011 09:58:16 +0900 Message-ID: From: Jun Furuse To: Nicolas Pouillard Cc: caml-list Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Caml-list] Is it possible to extend OCaml lexer rules via Camlp4? Hi, Unfortunately the conclusion seems to be currently there is no way to change the lexer by pa_*.cmo modules. Then, I stick to my patched p4 approach for now. With it I can use $/regexp\n/i and $`find . -iname hoo` syntax, but for whom using the vanilla p4, they can still use <:m> and <:qx> : https://bitbucket.org/camlspotter/orakuda/src/50d736f39428/test Thanks, Jun