Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] OCamlMakefile mly/mll interdependency
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Markus Mottl <markus@o...>
Subject: Re: [Caml-list] OCamlMakefile mly/mll interdependency
On Mon, 25 Aug 2003, Jeff Henrikson wrote:
> To help me with the aforementioned release, anybody want to help me 
> figure out why my OCamlMakefile isn't doing well on compling frontc?  
> No ordering of the source files seems to work:

This is not really surprising: module Clexer references module Cparser
and vice versa! You cannot have recursion between modules.

Since the lexer always depends on the parser, because the latter declares
tokens that the lexer returns, the parser must always be compiled before
the lexer.

Therefore, you'll have to factor out all code from the lexer that is
referenced by the parser and put it into a separate module, which you
have to compile before the parser (and by transitivity before the lexer).

Regards,
Markus Mottl

-- 
Markus Mottl          http://www.oefai.at/~markus          markus@oefai.at

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners