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: ocamlbuild, menhir and keeping tokens in a separate file
And one last request... Since I'm manually including easy_tokens.mly  
in the menhir command line I tell ocamlbuild to ignore it with - 
ignore Easy_tokens. I do open Easy_tokens in the lexer.

How can I make the lexer module depend on the parser so that the  
parser is always built first?

This is what happens now. Have I painted myself into a corner?

ocamlfind ocamlc -package ounit -c -o easy_lexer.cmo easy_lexer.ml
+ ocamlfind ocamlc -package ounit -c -o easy_lexer.cmo easy_lexer.ml
File "easy_lexer.mll", line 6, characters 2-18:
Unbound module Easy_tokens
Command exited with code 2.

	Thanks, Joel

--
http://wagerlabs.com/