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 B4EBBBC0A for ; Sun, 1 Apr 2007 13:46:21 +0200 (CEST) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.235]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l31BkKhj007790 for ; Sun, 1 Apr 2007 13:46:21 +0200 Received: by wr-out-0506.google.com with SMTP id q50so1064756wrq for ; Sun, 01 Apr 2007 04:46:20 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=g/hJ6ros6nrbKrgrB9Y+t2zbuhhQ1hA6BiPgvXhr6kfC0JEso4AfybAoU62szK1eEanJ26q1OpMZ0rwNuIotomtM3Y7MvwTC7A+pSjNH4xlRxbsYvJ0oJsBLTPNnMobwPqrizsoJW4u7gQhffdgFjeww1ZaTv205DXYhOyY6T88= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OnHLHv8CJRjtRUam2/WKy4DmnoPYTGQQG+DMojSEB+NynsUez+k4IyVsl24zGlTKmC9j/3NNaDfeBi8wqv+t3IzOR6oWxJ1CiQSSRv94tclRkGFntEky/qZHITJ0HdpwXf9QcdidxEVblFvHt3oYf4mjCYZwka6EhKBTCVTLo+I= Received: by 10.114.161.11 with SMTP id j11mr1415983wae.1175427980172; Sun, 01 Apr 2007 04:46:20 -0700 (PDT) Received: by 10.114.124.10 with HTTP; Sun, 1 Apr 2007 04:46:20 -0700 (PDT) Message-ID: <90823c940704010446v49be2523lac71be8c1ee2a47@mail.gmail.com> Date: Sun, 1 Apr 2007 15:46:20 +0400 From: "Dmitry Bely" To: caml-list@inria.fr Subject: Re: [Caml-list] [Camlp4 3.10] The rosetta stone (Was: lists without $list:...$) In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-j-chkmail-Score: MSGID : 460F9B8C.002 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 460F9B8C.002 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 ioxml:01 stone:98 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" (latest CVS with release310 tag) BTW, have anyone tried to translate pa_IoXML? It thought I would look into pa_json_static changes and do the same for IoXML, but in fact it's quite hard, at least for me... - Dmitry Bely