caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Nicolas Pouillard" <nicolas.pouillard@gmail.com>
To: "Dmitry Bely" <dmitry.bely@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] [Camlp4 3.10] The rosetta stone (Was: lists without $list:...$)
Date: Sun, 1 Apr 2007 19:24:04 +0200	[thread overview]
Message-ID: <cd67f63a0704011024v6711aa69te4bb19f9cf80281c@mail.gmail.com> (raw)
In-Reply-To: <90823c940704010446v49be2523lac71be8c1ee2a47@mail.gmail.com>

On 4/1/07, Dmitry Bely <dmitry.bely@gmail.com> wrote:
> On 3/26/07, Nicolas Pouillard <nicolas.pouillard@gmail.com> wrote:
> > On 3/24/07, Martin Jambon <martin.jambon@ens-lyon.org> 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


      reply	other threads:[~2007-04-01 17:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-25 20:47 Nicolas Pouillard
2007-04-01  8:04 ` Martin Jambon
2007-04-01 11:46 ` [Caml-list] " Dmitry Bely
2007-04-01 17:24   ` Nicolas Pouillard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cd67f63a0704011024v6711aa69te4bb19f9cf80281c@mail.gmail.com \
    --to=nicolas.pouillard@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=dmitry.bely@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).