Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Wojciech Meyer <wojciech.meyer@googlemail.com>
To: Thomas Gazagnaire <thomas.gazagnaire@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] compiling static preprocessors
Date: Fri, 2 Mar 2012 04:14:14 +0800	[thread overview]
Message-ID: <CAOg1smCsP24cS8oo8wrtpVRB3gakuBDa5VCqKsqorSvqJvP5LQ@mail.gmail.com> (raw)
In-Reply-To: <066176AC-436B-496D-A472-37973A2791E9@gmail.com>

Hi Thomas,

Unfortunately I don't have much time to reply right now, so please
excuse lack of information [i am not an camlp4 expert too] and I would
need to see what I did at wok, but as far as I remember mkcamlp4
command helped mi a lot with building custom preprocessors.

Cheers,
Wojciech


On Fri, Mar 2, 2012 at 3:58 AM, Thomas Gazagnaire
<thomas.gazagnaire@gmail.com> wrote:
> Dear camlp4 experts,
>
> I'm trying to compile a static version of a preprocessor built from type-conv and sexplib.
>
> I've tried:
>
> ocamlc dynlink.cma unix.cma \
>       -I +camlp4 camlp4lib.cma -linkall \
>       Camlp4Parsers/Camlp4OCamlRevisedParser.cmo \
>       Camlp4Parsers/Camlp4OCamlParser.cmo \
>       Camlp4Parsers/Camlp4OCamlRevisedParserParser.cmo \
>       Camlp4Parsers/Camlp4OCamlParserParser.cmo \
>       Camlp4Printers/Camlp4AutoPrinter.cmo \
>       Camlp4Bin.cmo \
>       -I +site-lib/type-conv pa_type_conv.cma \
>       -I +site-lib/sexplib pa_sexp_conv.cma \
>       -o sexppp
>
> I've taken the first lines by greping camlp4o.native in ocaml-3.12.1/_build/_log and I've appended what normally follows camlp4o when using sexplib.
>
> The command succeeds at building sexppp, but unfortunately, the preprocessor doesn't work as expected: "./my_pp foo.ml" gives: "Parse error: [semi] expected after [str_item] (in [implem])" for any type followed by "with sexp" in foo.ml.
>
> I am trying to do something crazy or is there a chance to make it work?
>
> Cheers,
> Thomas
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa-roc.inria.fr/wws/info/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>


  reply	other threads:[~2012-03-01 20:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-01 19:58 Thomas Gazagnaire
2012-03-01 20:14 ` Wojciech Meyer [this message]
2012-03-01 21:52 ` Jérémie Dimino
2012-03-01 22:25   ` Thomas Gazagnaire
2012-03-01 22:32     ` Jérémie Dimino
2012-03-01 22:43       ` Thomas Gazagnaire

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=CAOg1smCsP24cS8oo8wrtpVRB3gakuBDa5VCqKsqorSvqJvP5LQ@mail.gmail.com \
    --to=wojciech.meyer@googlemail.com \
    --cc=caml-list@inria.fr \
    --cc=thomas.gazagnaire@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