Version française
Home     About     Download     Resources     Contact us    
Browse thread
Help with new camlp4
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Joel Reymont <joelr1@g...>
Subject: Re: [Caml-list] Help with new camlp4
I hereby declare victory!

let expand_expr_file _ _ s = translate (Xml.parse_file s) ;;

let expand_expr_str _ _ s = translate (Xml.parse_string s);;

let expand_patt x =
(*  Stdpp.raise_with_loc loc *)
   Loc.raise x (Failure "Quotation not allowed in pattern")
;;

--
http://wagerlabs.com/