From: Benoit Montagu <benoit.montagu@m4x.org>
To: Philippe Veber <philippe.veber@gmail.com>
Cc: Gabriel Scherer <gabriel.scherer@gmail.com>,
caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] Using menhir for a camlp4 quotation: a compilation issue
Date: Thu, 20 Sep 2012 12:11:22 -0400 [thread overview]
Message-ID: <505B402A.9070407@m4x.org> (raw)
In-Reply-To: <CAOOOohQ8frf9S_0F4wB_mPpUbZJLx9_AwrT8ZVUOv3rph9SikA@mail.gmail.com>
The typical use case for mlypack is the following: you have several
parser files (say, A.mly and B.mly) that menhir needs to combine (yes,
menhir can do that), and you want menhir to create a parser C.ml/C.mli.
To do so, you create C.mlypack, whose contents is:
A
B
And then ocamlbuild should work.
In your case, r_lang_parser.mlypack should contain
Foo
where Foo.mly is your menhir file.
I don't know about how to pass extra arguments to menhir.
-- Benoit
next prev parent reply other threads:[~2012-09-20 16:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-20 13:45 Philippe Veber
2012-09-20 14:18 ` Gabriel Scherer
2012-09-20 15:54 ` Philippe Veber
2012-09-20 16:11 ` Benoit Montagu [this message]
2012-09-20 16:30 ` Philippe Veber
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=505B402A.9070407@m4x.org \
--to=benoit.montagu@m4x.org \
--cc=caml-list@inria.fr \
--cc=gabriel.scherer@gmail.com \
--cc=philippe.veber@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