Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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:

macro.ml:
"""
open Camlp4.Sig
let here = __LOCATION__
"""

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

Result:
File "macro.ml", 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?

Thanks,
-n8

-- 
>>>-- Nathaniel Gray -- Caltech Computer Science ------>
>>>-- Mojave Project -- http://mojave.cs.caltech.edu -->