Browse thread
ocamlbuild, menhir and keeping tokens in a separate file
[
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-05-02 (11:54) |
From: | Nicolas Pouillard <nicolas.pouillard@g...> |
Subject: | Re: [Caml-list] Re: ocamlbuild, menhir and keeping tokens in a separate file |
On 5/2/07, Joel Reymont <joelr1@gmail.com> wrote: > I need the same options to Menhir when calculating dependencies so I > thought I would replace "ocaml"; "parser"; "menhir" with > "menhir_ocamldep". This works, for example: > > flag ["ocaml"; "menhir_ocamldep" ] (S[A"--external-tokens"; > A"EasyToken";]); > > Still, > > _tags: > > "EasyParser.mly": use_tokens > > myocamlbuild.ml: > > dep ["ocaml"; "menhir_ocamldep"; "use_tokens"] ["EasyToken.mly"]; > > + /usr/local/bin/menhir --external-tokens EasyToken --raw-depend -- > ocamldep '/usr/local/bin/ocamldep.opt -modules' EasyParser.mly > > EasyParser.mly.depends > > Doesn't seem to work, I don't see EasyToken.mly included on the > command line. I was expecting to see "EasyParser.mly EasyToken.mly" The main behavior of dep is just to build EasyToken.mly before running the command, not to include it into the command line. You can use flag to insert it into the command line. -- Nicolas Pouillard