Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Nicolas Pouillard" <nicolas.pouillard@inria.fr>
To: n8gray <n8gray@gmail.com>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] camlp4: Where's Loc?
Date: Mon, 08 Oct 2007 14:54:46 +0200	[thread overview]
Message-ID: <1191848007-sup-3223@ausone.inria.fr> (raw)
In-Reply-To: <aee06c9e0710061840t26e3ffe3w9623bc4dd65d8b71@mail.gmail.com>

Excerpts from n8gray's message of Sun Oct 07 03:40:57 +0200 2007:
> I'm trying to figure out how to use the Camlp4MacroParser extension
> but I can't seem to find the Loc module it requires:

Log is exposed to the user in Camlp4.PreCast, so:

open Camlp4.PreCast;;

> 
> 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?

In sig there is the Loc module type.

-- 
Nicolas Pouillard aka Ertai


      reply	other threads:[~2007-10-08 12:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-07  1:40 Nathaniel Gray
2007-10-08 12:54 ` Nicolas Pouillard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1191848007-sup-3223@ausone.inria.fr \
    --to=nicolas.pouillard@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=n8gray@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox