Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Hendrik Tews <tews@os.inf.tu-dresden.de>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] how (within camlp4 printer) can I traverse AST ?
Date: Mon, 13 Feb 2012 10:34:12 +0100	[thread overview]
Message-ID: <6xbop3rsa3.fsf@blau.inf.tu-dresden.de> (raw)
In-Reply-To: <4F292986.30008@gmail.com> ("Matej =?utf-8?B?S2/FocOtayIncw==?= message of "Wed, 01 Feb 2012 12:01:10 +0000")

Matej Košík <5764c029b688c1c0d24a2e97cd764f@gmail.com> writes:

   1. these examples are not compiled with ordinary ocamlc/camlp4 tools but
   with special ocamlc/camlp4* version built at the "boot time" which are
   not interchangeable with regular ocamlc/camlp4* programs. If I try to
   use regular ocamlc/camlp4* tools in an attempt to compile those
   printers, I will get syntax errors in those printers.

I can compile camlp4/Camlp4/Printers/OCaml.{mli,ml} from 3.12.1
with an installed version of 3.12.1 as follows:

- Add ``open Camlp4;'' as first line in OCaml.mli and OCaml.ml
- In directory camlp4/Camlp4/Printers, compile with
   ocamlc -c -pp camlp4rf -I +camlp4 OCaml.mli
   ocamlc -c -pp camlp4rf -I +camlp4 OCaml.ml

The ``open'' is only necessary because the OCaml installation
procedure does not install all compiled module interfaces. 

Bye,

Hendrik


      parent reply	other threads:[~2012-02-13  9:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-31 21:26 Matej Košík
2012-01-31 22:58 ` Gabriel Scherer
2012-02-01 12:01   ` Matej Košík
2012-02-02 16:38     ` Gabriel Scherer
2012-02-13  9:34     ` Hendrik Tews [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=6xbop3rsa3.fsf@blau.inf.tu-dresden.de \
    --to=tews@os.inf.tu-dresden.de \
    --cc=caml-list@yquem.inria.fr \
    /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