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:07)
From: Matthieu Wipliez <mwipliez@y...>
Subject: Re : [Caml-list] Porting camlp4 stuff from 3.09 to 3.10: need help
> 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:

the following quotation was available in camlp4 3.09, but not in the 3.10 version:
  <:str_item< declare $list:stl$ end >>: declare.

> > The mentioned line 78 is:
> > 
> >   <:str_item< declare end >>
> > 
> > It looks like the "declare end" construct is not allowed any more. Is
> > there any equivalent in 3.10, and is there a specific bit of
> > documentation about this?

Maybe it was removed because it was kind of redundant with other constructions, for example:
  module Declarations = struct ... end
  open Declarations

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).

Hope this helps,


Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr