From: Joel Reymont <joelr1@gmail.com>
To: "Nicolas Pouillard" <nicolas.pouillard@gmail.com>
Cc: "Caml List" <caml-list@inria.fr>
Subject: Re: [Caml-list] Re: ocamlbuild, menhir and keeping tokens in a separate file
Date: Wed, 2 May 2007 13:00:11 +0100 [thread overview]
Message-ID: <1672645D-0CBF-4E76-BF6B-01831AD5B516@gmail.com> (raw)
In-Reply-To: <cd67f63a0705020454o59f1cc3j42d40eefd9d76b00@mail.gmail.com>
On May 2, 2007, at 12:54 PM, Nicolas Pouillard wrote:
> The main behavior of dep is just to build EasyToken.mly before running
> the command, not to include it into the command line. You can use flag
> to insert it into the command line.
This is what I use now:
let menhir_opts = S[A"--external-tokens";
A"EasyToken";
A"--base";
A"EasyParser";
A"EasyToken.mly"
];;
flag ["ocaml"; "parser"; "menhir" ] (menhir_opts);
flag ["ocaml"; "menhir_ocamldep" ] (menhir_opts);
Two things happen, though, both undesirable:
1) Menhir cannot find EasyToken.mly unless I manually go into _build
and symlink the file from ../
2) ocamlbuild tries to compile EasyToken.mly. I want to avoid this as
this file is not set up for compilation.
How do I prevent ocamlbuild from trying to compile EasyToken.mly
while still copying it into _build/ for Menhir to find it?
Alternatively, how do I specify custom flags for the Menhir run on
EasyToken.mly? I need to add --token-only, for example.
And one last thing, how do I apply menhir_opts to certain mly files
but not others?
Thanks, Joel
--
http://wagerlabs.com/
next prev parent reply other threads:[~2007-05-02 12:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-27 23:38 Joel Reymont
2007-04-27 23:50 ` Joel Reymont
2007-04-28 0:05 ` Joel Reymont
2007-04-28 0:34 ` Joel Reymont
2007-04-28 15:14 ` [Caml-list] " Nicolas Pouillard
2007-04-28 15:12 ` Nicolas Pouillard
2007-05-02 8:51 ` Joel Reymont
2007-05-02 11:54 ` Nicolas Pouillard
2007-05-02 12:00 ` Joel Reymont [this message]
2007-05-02 12:48 ` Joel Reymont
2007-05-02 13:08 ` Nicolas Pouillard
2007-05-02 13:28 ` Joel Reymont
2007-05-02 13:47 ` Joel Reymont
2007-05-02 14:55 ` Joel Reymont
2007-05-03 7:26 ` Nicolas Pouillard
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=1672645D-0CBF-4E76-BF6B-01831AD5B516@gmail.com \
--to=joelr1@gmail.com \
--cc=caml-list@inria.fr \
--cc=nicolas.pouillard@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