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