caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Joel Reymont <joelr1@gmail.com>
To: Caml List <caml-list@inria.fr>
Subject: Re: ocamlbuild, menhir and keeping tokens in a separate file
Date: Sat, 28 Apr 2007 00:50:39 +0100	[thread overview]
Message-ID: <78040751-B95B-4620-A995-A4AB74F5E997@gmail.com> (raw)
In-Reply-To: <301C13B2-671A-40CE-AB6C-E92E0ED454E6@gmail.com>

I forgot to mention that easy_tokens.mly should always be used in the  
same command line as easy_parser.mly, even during the dependency run.  
I see this right now, which obviously doesn't work.

menhir --raw-depend --ocamldep 'ocamldep.opt -modules'  
easy_parser.mly > easy_parser.mly.depends

File "easy_parser.mly", line 453, characters 4-14:
Error: DARK_GREEN is undefined.
        ^^^
is in easy_tokens.mly

	Thanks, Joel

On Apr 28, 2007, at 12:38 AM, Joel Reymont wrote:

> How can I specify with ocamlbuild that to build my easy_parser.mly  
> I need to include easy_tokens.mly on the menhir command line, as  
> well as give menhir --base easy_parser?
>
> The command I'm looking for is below:
>
> menhir --explain --infer --base easy_parser easy_tokens.mly  
> easy_parser.mly

--
http://wagerlabs.com/






  reply	other threads:[~2007-04-27 23:50 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 [this message]
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
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=78040751-B95B-4620-A995-A4AB74F5E997@gmail.com \
    --to=joelr1@gmail.com \
    --cc=caml-list@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;
as well as URLs for NNTP newsgroup(s).