caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Nicolas Pouillard" <nicolas.pouillard@gmail.com>
To: "Joel Reymont" <joelr1@gmail.com>
Cc: "Caml List" <caml-list@inria.fr>
Subject: Re: [Caml-list] ocamlbuild and menhir options
Date: Sat, 28 Apr 2007 09:55:31 +0200	[thread overview]
Message-ID: <cd67f63a0704280055q6161ca1aqf0efb4bf729f1bee@mail.gmail.com> (raw)
In-Reply-To: <56F499BA-47E2-4C89-982B-3FE23819FAA0@gmail.com>

On 4/27/07, Joel Reymont <joelr1@gmail.com> wrote:
> Nicolas,
>
> > Oops, you're right yaccflags is just for ocamlyacc (I will fix it).
> >
> > Another solution can be: -ocamlyacc "menhir --explain"
>
> I actually need to run Menhir like this:
>
> menhir --base easy_parser easy_parser.mly easy_tokens.mly
>
> I already have flags like these in myocamlbuild.ml
>
> flag ["ocaml"; "link"] (A"-linkpkg");;
> flag ["ocaml"; "link"; "output_obj"] (A"-output-obj");
>
> How would I add the flags for Menhir?

Instead of giving you the fish, there is a fishing advice!

You should look at the _log file produced by ocamlbuild, there is lines like:
# Target: <filename>, tags: { <tags> }

If you search for the menhir command you will find the tag list
associated (something like ocaml, parser, menhir), then you can add a
flag declaration to inject things a this particular point of the
build.

Regards,

-- 
Nicolas Pouillard


      reply	other threads:[~2007-04-28  7:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-27 13:52 Joel Reymont
2007-04-27 14:12 ` [Caml-list] " Nicolas Pouillard
2007-04-27 14:19   ` Joel Reymont
2007-04-27 14:27     ` Nicolas Pouillard
2007-04-27 20:15       ` Joel Reymont
2007-04-28  7:55         ` 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=cd67f63a0704280055q6161ca1aqf0efb4bf729f1bee@mail.gmail.com \
    --to=nicolas.pouillard@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=joelr1@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;
as well as URLs for NNTP newsgroup(s).