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

On Apr 2, 2007, at 10:28 AM, Nicolas Pouillard wrote:

> Indeed http://gallium.inria.fr/~pouillar/camlp4-changes.html explain
> some of these common changes.

How do you do the following?

Quotation.add "octalxml" (Quotation.ExAst  
(expand_expr_str,expand_patt)) ;;
Quotation.add "octalfile" (Quotation.ExAst  
(expand_expr_file,expand_patt)) ;;

I get an error:

This expression has type string -> Camlp4.PreCast.Ast.expr
but is here used with type
   Camlp4.PreCast.Quotation.Ast.expr  
Camlp4.PreCast.Quotation.expand_fun =
     Camlp4.PreCast.Quotation.Ast.Loc.t ->
     string option -> string -> Camlp4.PreCast.Quotation.Ast.expr
Type string is not compatible with type
   Camlp4.PreCast.Quotation.Ast.Loc.t = Camlp4.PreCast.Loc.t
make: *** [q_octal.cmo] Error 2

--
http://wagerlabs.com/