English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Re : [Caml-list] Porting camlp4 stuff from 3.09 to 3.10: need help
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-04-09 (13:31)
From: Loup Vaillant <loup.vaillant@g...>
Subject: Re: Re : [Caml-list] Porting camlp4 stuff from 3.09 to 3.10: need help
2008/4/9, Matthieu Wipliez <mwipliez@yahoo.fr>:
> > AFAIK the list of predefined quotations is the same as for 3.09, but
> > maybe this page will help:
> >
> http://brion.inria.fr/gallium/index.php/Abstract_Syntax_Tree
> This seems unlikely:
> http://camltest.inria.fr/pub/old_caml_site/camlp4/manual/manual010.html#toc39
> http://brion.inria.fr/gallium/index.php/Abstract_Syntax_Tree

But it helped me, anyway: I saw there is an "empty" case in the
str_item declaration. For my use case, it does the job. (They are
still errors left, but I saw where they are documented --about the
EXTEND statement changes).

> the following quotation was available in camlp4 3.09, but not in the 3.10
> version:
>   <:str_item< declare $list:stl$ end >>: declare.
> [...]
> I'd suggest you either use a module as I did above to emulate the "declare"
> behavior, or that you declare everything at the top level (have a look at
> str_items in the Camlp4OCamlRevisedParser if you need inspiration).

I'll do that if I need to.

> Hope this helps,

It did. Thanks.