Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Camlp4 3.10] The rosetta stone (Was: lists without $list:...$)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-04-01 (11:46)
From: Dmitry Bely <dmitry.bely@g...>
Subject: Re: [Caml-list] [Camlp4 3.10] The rosetta stone (Was: lists without $list:...$)
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

For me it compiles but does not work:

D:\Work\Camlp4test>ocamlc -pp camlp4orf -I +camlp4 -c

D:\Work\Camlp4test>camlp4 pa_json_static.cmo -parser OCaml -printer
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