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: | -- (:) |
| From: | Joel Reymont <joelr1@g...> |
| Subject: | Re: ocamlbuild, menhir and keeping tokens in a separate file |
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/