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
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: -- (:)
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