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=1.1 required=5.0 tests=AWL,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 discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id E90FFBC6F for ; Thu, 3 May 2007 10:48:39 +0200 (CEST) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.179]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l438mdln005113 for ; Thu, 3 May 2007 10:48:39 +0200 Received: by ik-out-1112.google.com with SMTP id c29so408722ika for ; Thu, 03 May 2007 01:48:39 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=M1aikTwtpV88IJtwK8t6K/fcDP1NGfLHzPWxynl0BvKOxMY4/QpALSnFJ4lUHO3fmObtgjaguJvVwV9/X6LdVqgqnOCQknNEJCUuKYpVwCqZYywy1Cxe28vNWMXfMkFSKByTW/ujA7v8Oml651Kg2AqtiS0onYizMyi4qB6P8O0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=f0bSOXZzC9a3FE5HpdTAWbvIx5mhV+C4ywkL4sYqY2j1R6Nw/1fXRMNEX4K9vNO1m3cjY0TgCCXtlxjrTEqMC05d8unl12XtUdwa8dlfg0eIDoxtZ6A37YWq5XU6FLRgGk7FVuz0c6NlvFejuPpT+jnn3hCleGB6ClkqTmPXLcI= Received: by 10.82.162.14 with SMTP id k14mr3417677bue.1178182115745; Thu, 03 May 2007 01:48:35 -0700 (PDT) Received: from ?192.168.1.34? ( [83.52.237.136]) by mx.google.com with ESMTP id c25sm5066ika.2007.05.03.01.48.23; Thu, 03 May 2007 01:48:32 -0700 (PDT) In-Reply-To: <1178155073.7026.14.camel@rosella.wigram> References: <1EE80473-541D-478D-97F8-06A1B5F65F79@gmail.com> <20070502054411.GB726@yquem.inria.fr> <8C011A98-CE76-4A83-B24C-BA37B66DF15D@gmail.com> <1178096690.13660.80.camel@rosella.wigram> <20070502115635.GA21560@yquem.inria.fr> <1178122046.6486.31.camel@rosella.wigram> <20070502183020.GA17473@yquem.inria.fr> <1178155073.7026.14.camel@rosella.wigram> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: Francois.Pottier@inria.fr, Caml List , menhir-list@yquem.inria.fr Content-Transfer-Encoding: 7bit From: Joel Reymont Subject: Re: [Caml-list] Re: [Menhir-list] There's an elephant in the room: Solution to sharing a symbol table Date: Thu, 3 May 2007 09:48:17 +0100 To: skaller X-Mailer: Apple Mail (2.752.3) X-j-chkmail-Score: MSGID : 4639A1E7.002 on discorde : j-chkmail score : XXX : 5/20 1 0.000 -> 3 X-Miltered: at discorde with ID 4639A1E7.002 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; parser:01 lexbuf:01 lexing:01 struct:01 lexbuf:01 elephant:98 2007,:98 elephant:98 wrote:01 token:01 caml-list:01 francois:02 string:02 module:03 let:03 On May 3, 2007, at 2:17 AM, skaller wrote: > In fact Joel explained the 'elephant' technique: The elephant in the room was something that, seemingly, no one talked about, although it was large and glaringly obvious. > let parser str = > let tab = .. in > let lexbuf = Lexing.from_string str in > let module P = EasyParser.Make (struct let tab = tab end) in > P.program (token tab) lexbuf Kudos to Francois to offering the above example. Thanks, Joel -- http://wagerlabs.com/