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
Equivalent of Quotation.ExStr in new camlp4?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-07-25 (16:23)
From: Harrison, John R <john.r.harrison@i...>
Subject: RE: [Caml-list] Equivalent of Quotation.ExStr in new camlp4?
| No ExStr is no more supported. But you can do it your self by calling
| the parser on your string if you really don't want switch to an AST
| based quotation expander.

OK, that's fine. But how do I do that? Concretely, this is what I had
before, so what should I have now?

  Quotation.add "" (Quotation.ExStr (fun x -> quotexpander));;

I don't mind in principle writing an AST-producing expander, but at the
moment the priority is to get my code working in 3.10 with minimal
expenditure of effort.