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 9B108BC0A for ; Sun, 1 Apr 2007 19:24:07 +0200 (CEST) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.226]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l31HO6TH019377 for ; Sun, 1 Apr 2007 19:24:06 +0200 Received: by wr-out-0506.google.com with SMTP id q50so1117425wrq for ; Sun, 01 Apr 2007 10:24:05 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Aop/j10YTLFWlrXpWxguIASZSS1B+F43WvtAV3DStQ+SZXkcjw6I+v/S1LkOqXQC+VM8Sk0toHE4l6CjyVIDmNgcTcN9VYY02yQdWhRTq/C/rkldf4ovD4iac4rGwat0iJCg1VyK5ph5rqswIcLU10cAzxj8qeOVLkOpl8KyZ/c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uO9g90ujQZVcARSZW0VyL8CamcverCqSfNsFLlW+f7QZBQTnRDDt4pwsKlbnl2PJu2NIrjw/0Q/nmrH2lF8xd7fnZJ/W/p7Wj/RWW1lk6bEqgOQlZSViRaprbmIiJxNFFC/kuZAnBZp941TWTAfqJJIDcvypXGj8IyqfKvX2MvE= Received: by 10.114.126.1 with SMTP id y1mr1510572wac.1175448245092; Sun, 01 Apr 2007 10:24:05 -0700 (PDT) Received: by 10.114.181.18 with HTTP; Sun, 1 Apr 2007 10:24:04 -0700 (PDT) Message-ID: Date: Sun, 1 Apr 2007 19:24:04 +0200 From: "Nicolas Pouillard" To: "Dmitry Bely" Subject: Re: [Caml-list] [Camlp4 3.10] The rosetta stone (Was: lists without $list:...$) Cc: caml-list@inria.fr In-Reply-To: <90823c940704010446v49be2523lac71be8c1ee2a47@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <90823c940704010446v49be2523lac71be8c1ee2a47@mail.gmail.com> X-j-chkmail-Score: MSGID : 460FEAB6.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 460FEAB6.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 ens-lyon:01 syntax:01 sexp:01 syntax:01 ioxml:01 translated:01 camlp:01 ocamlc:01 -pp:01 cmo:01 ocaml:01 ocaml:01 cmo:01 stone:98 On 4/1/07, Dmitry Bely wrote: > On 3/26/07, Nicolas Pouillard wrote: > > On 3/24/07, Martin Jambon wrote: > > > > > > I would like you or anyone knowledgeable to translate one significant > > > syntax extension. You know, some kind of Rosetta stone. You can take > > > Markus' sexp syntax extension or ioxml if you prefer, it won't be much > > > different. > > > > Here is your rosetta stone :) > > > > I translated pa_json_static.ml. > > For me it compiles but does not work: > > D:\Work\Camlp4test>ocamlc -pp camlp4orf -I +camlp4 -c pa_json_static.ml > > D:\Work\Camlp4test>camlp4 pa_json_static.cmo -parser OCaml -printer > OCaml test.ml > No level labelled "top" in entry "str_item" > Failure: "Grammar.extend" Wrong order for loaded modules.... camlp4 -parser OCaml pa_json_static.cmo -printer OCaml test.ml or shorter: camlp4 -parser o pa_json_static.cmo -printer o test.ml or event shorter: camlp4o pa_json_static.cmo -printer o test.ml -- Nicolas Pouillard