Browse thread
ocamlbuild and menhir options
-
Joel Reymont
-
Nicolas Pouillard
-
Joel Reymont
-
Nicolas Pouillard
-
Joel Reymont
- Nicolas Pouillard
-
Joel Reymont
-
Nicolas Pouillard
-
Joel Reymont
-
Nicolas Pouillard
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2007-04-28 (07:55) |
From: | Nicolas Pouillard <nicolas.pouillard@g...> |
Subject: | Re: [Caml-list] ocamlbuild and menhir options |
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