From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 3F88DBC6D for ; Sat, 28 Apr 2007 02:34:37 +0200 (CEST) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l3S0YaO6021517 for ; Sat, 28 Apr 2007 02:34:37 +0200 Received: by ug-out-1314.google.com with SMTP id k3so781638ugf for ; Fri, 27 Apr 2007 17:34:36 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; b=rmrEfduvL3d0Snha9XmC9sOrad1IM6SRpxMBqSGbF5g10zY35DtDe/W/6bE04uSsOXxrajY5hCe+z7Q/Wp4ld0tpM06BwjbvUAsxdPdQTrVW837+hL5mfrIhWv8kMuhuDcptzfQztxv8XJ29CsBWA4w67w3DKmVbq+vqeltsbBY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; b=AhSPKSy+pAyGqw4asJniLTP43O72S+5RTK6eXQo8sDCTATnVgwBu56ooezNqWz8J+bKY0pvgP8O+FZBP8+5YwsoPx14jaYOQObUxDn2CxCuwONgdRagzU7UWda/R2NYnq79R0NYQqanOJfRJbq1wdl506itMYEhwibCXHWPhEv4= Received: by 10.66.239.18 with SMTP id m18mr3386690ugh.1177720476500; Fri, 27 Apr 2007 17:34:36 -0700 (PDT) Received: from ?192.168.1.34? ( [81.37.190.201]) by mx.google.com with ESMTP id z34sm2026448ikz.2007.04.27.17.34.35; Fri, 27 Apr 2007 17:34:35 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <2A1A8C74-50D5-4F0B-815B-B56CA506578E@gmail.com> References: <301C13B2-671A-40CE-AB6C-E92E0ED454E6@gmail.com> <78040751-B95B-4620-A995-A4AB74F5E997@gmail.com> <2A1A8C74-50D5-4F0B-815B-B56CA506578E@gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Joel Reymont Subject: Re: ocamlbuild, menhir and keeping tokens in a separate file Date: Sat, 28 Apr 2007 01:34:35 +0100 To: Caml List X-Mailer: Apple Mail (2.752.3) X-j-chkmail-Score: MSGID : 4632969C.001 on discorde : j-chkmail score : XXX : 5/20 1 0.000 -> 3 X-Miltered: at discorde with ID 4632969C.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; tokens:01 tokens:01 lexer:01 lexer:01 parser:01 parser:01 ocamlfind:01 ocamlc:01 -package:01 cmo:01 ocamlfind:01 ocamlc:01 -package:01 cmo:01 mll:01 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/