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: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] Help with new camlp4
On 4/2/07, Joel Reymont <joelr1@gmail.com> wrote:
>
> On Apr 2, 2007, at 10:21 AM, Joel Reymont wrote:
>
> > ocamlc.opt -c -I +camlp4 -pp 'camlp4orf -loc loc' q_octal.ml
> > File "q_octal.ml", line 23, characters 10-25:
> > Unbound value Token.dummy_loc
> >
> > on
> >
> > let loc = Token.dummy_loc ;;
>
> This is easy, actually.
>
> open Camlp4.PreCast
>
> let loc = Loc.ghost

That's it.

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

There is also some things that you can digg in that translation:
http://martin.jambon.free.fr/examples/pa_json_static_3100beta.html

-- 
Nicolas Pouillard