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.0 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 E9D7DBC69 for ; Fri, 30 Mar 2007 14:10:29 +0200 (CEST) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2UCATmx016095 for ; Fri, 30 Mar 2007 14:10:29 +0200 Received: by ug-out-1314.google.com with SMTP id k3so863553ugf for ; Fri, 30 Mar 2007 05:10:29 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=aAhFvA/vimZORzCKfGmCWeIZnP0Yn5CO5S0EA7fheQ6FxjKni3VtDes8oQaRABbNNtxeamp0WdPNRoPaqunjBDwD23Sa/qGPHHEDE0kC85WenNkealB3dytwquU9BuwdknagA+7yVEXBKLxrfOxhXsic3rGJufnR4ej7CjeWWCM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=pcjYYiEPqn0+dgIVXEBFJtzLkxHJqvUGoklK2HnQt4Lc/jNdQ91+4+GUQ1FfWtUN/Z5v4L8idCvGvZqGjdFM1lscqC3+bqaL/7KhrWJGQiwvCNRXJN7S9Q7Ws4939KaWa5W9HB8wUz6Z5jFnwM+KoDoavdAv04XrgtgTGTyqZcw= Received: by 10.67.101.8 with SMTP id d8mr2166873ugm.1175256629345; Fri, 30 Mar 2007 05:10:29 -0700 (PDT) Received: from ?192.168.1.34? ( [88.7.143.102]) by mx.google.com with ESMTP id b23sm3168925ugd.2007.03.30.05.10.27; Fri, 30 Mar 2007 05:10:28 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: <0B316BD6-F65C-44DC-A2D0-BFE3A4FC0B5A@gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: Caml List From: Joel Reymont Subject: Running several parsers in a single runtime (nethttpd, Menhir) Date: Fri, 30 Mar 2007 13:10:26 +0100 X-Mailer: Apple Mail (2.752.3) X-j-chkmail-Score: MSGID : 460CFE35.000 on discorde : j-chkmail score : XXX : 5/20 1 0.000 -> 3 X-Miltered: at discorde with ID 460CFE35.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; parsers:01 runtime:01 parsing:01 rhs:01 parsing:01 rhs:01 loc:03 let:03 uses:06 translation:07 i'm:09 folks:11 end:12 issue:12 pos:13 Folks, It appears that Parsing uses global state, e.g. let rhs_loc n = (Parsing.rhs_start_pos n, Parsing.rhs_end_pos n) I'm building an "app server" to provide translation services to Ruby/ Rails . How would you suggest I work around the global state issue? Would I need to switch to Menhir? Thanks, Joel -- http://wagerlabs.com/