Version française
Home     About     Download     Resources     Contact us    
Browse thread
camlp4 Filters changed?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] camlp4 Filters changed?
Excerpts from joelr1's message of Sat Jan 26 01:34:25 +0100 2008:
> I get the error "This expression has no method expr" and it points to  
> super#expr below.
> 
> Is there no expr in map anymore or am I doing something wrong?
> 
> class map = Camlp4Filters.GenerateMap.generated;;

It's now:

class map = Camlp4MapGenerator.generated;

I've just updated the wiki.

> let strip_token_loc = object
>    inherit map as super
>    method expr e =
>      match super#expr e with
>        | `TokenPos (a, _) -> a
>        | e                -> e
> end

-- 
Nicolas Pouillard aka Ertai