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
camlp4: Where's Loc?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-10-07 (01:40)
From: Nathaniel Gray <n8gray@g...>
Subject: camlp4: Where's Loc?
I'm trying to figure out how to use the Camlp4MacroParser extension
but I can't seem to find the Loc module it requires:
open Camlp4.Sig
let here = __LOCATION__

Build command:
ocamlc -I +camlp4 -pp "camlp4o -parser Camlp4MacroParser"
camlp4lib.cma -o macro

File "", line 2, characters 11-23:
Unbound value Loc.of_tuple

According to the documentation the Loc module's supposed to be in
Camlp4.Sig.  Any clues?


>>>-- Nathaniel Gray -- Caltech Computer Science ------>
>>>-- Mojave Project -- -->