Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2003-08-27 (10:01)
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).

Markus Mottl

Markus Mottl

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: