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:14)
From: Harrison, John R <john.r.harrison@i...>
Subject: RE: [Caml-list] Equivalent of Quotation.ExStr in new camlp4?
| In Ocsigen,
| Quotation.add "xml" (Quotation.ExAst (xml_exp, xml_pat))
| became
| open Camlp4.PreCast ;
| Syntax.Quotation.add "xml" Syntax.Quotation.DynAst.expr_tag
| Parser.xml_exp
| Maybe this can give you a clue ?

Maybe, but I was looking for the equivalent of Quotation.ExStr
rather than Quotation.ExAst, i.e. apply a string transform then
the usual OCaml parser rather than my own parser producing an