Mailing list for all users of the OCaml language and system.
 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] Re: ocamlbuild, menhir and keeping tokens in a separate file
Date: Sat, 28 Apr 2007 17:12:27 +0200	[thread overview]
Message-ID: <cd67f63a0704280812n6c2f1c43qd7d212be1e7c170f@mail.gmail.com> (raw)
In-Reply-To: <2A1A8C74-50D5-4F0B-815B-B56CA506578E@gmail.com>

On 4/28/07, Joel Reymont <joelr1@gmail.com> wrote:
> This is what I came up with:
>
> flag ["ocaml"; "parser"; "mehir" ] (A"--explain");
> flag ["ocaml"; "menhir_ocamldep" ] (A"easy_tokens.mly");
> flag ["ocaml"; "menhir_ocamldep" ] (A"--base");
> flag ["ocaml"; "menhir_ocamldep" ] (A"easy_parser");
>
> Can the 3 different (A"..")s be combined?

flag ["ocaml"; "menhir_ocamldep" ] (S[A"easy_tokens.mly"; A"--base";
A"easy_parser"]);

> This works but ocamlbuild doesn't know anything about easy_tokens and
> doesn't copy it to _build which results in a "file not found" error.
>
> Is there a way to say that this token file should always go on the
> command line with this mly file? Hardcoding like above only works if
> there's one parser in the project.
>
> I tried the following off of the top of my head but it doesn't work.
>
> dep ["ocaml"; "parser"; "menhir"; "tokens"] ["easy_tokens.mly"];
>
> in _tags
>
> "easy_parser.mly": tokens

Hum this is supposed to works.

Can you try these one

dep ["ocaml"; "parser"; "menhir"] ["easy_tokens.mly"];

dep ["ocaml"; "parser"; "menhir"; "file:easy_parser.mly"] ["easy_tokens.mly"];

-- 
Nicolas Pouillard


  parent reply	other threads:[~2007-04-28 15:12 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 [this message]
2007-05-02  8:51       ` Joel Reymont
2007-05-02 11:54         ` Nicolas Pouillard
2007-05-02 12:00           ` Joel Reymont
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=cd67f63a0704280812n6c2f1c43qd7d212be1e7c170f@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