Version française
Home     About     Download     Resources     Contact us    
Browse thread
ocamlbuild, menhir and keeping tokens in a separate file
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Joel Reymont <joelr1@g...>
Subject: Re: [Caml-list] Re: ocamlbuild, menhir and keeping tokens in a separate file
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"

On Apr 28, 2007, at 4:12 PM, Nicolas Pouillard wrote:

> Can you try these one
>
> dep ["ocaml"; "parser"; "menhir"] ["easy_tokens.mly"];

dep ["ocaml"; "menhir_ocamldep"] ["EasyToken.mly"];

+ /usr/local/bin/menhir --external-tokens EasyToken --raw-depend -- 
ocamldep '/usr/local/bin/ocamldep.opt -modules' EasyParser.mly >  
EasyParser.mly.depends

Not working.

> dep ["ocaml"; "parser"; "menhir"; "file:easy_parser.mly"]  
> ["easy_tokens.mly"];

dep ["ocaml"; "menhir_ocamldep"; "file:EasyParser.mly"]  
["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 work either.


--
http://wagerlabs.com/