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 concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 52616BC6B for ; Sat, 28 Apr 2007 02:05:19 +0200 (CEST) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l3S05IU2028919 for ; Sat, 28 Apr 2007 02:05:19 +0200 Received: by ug-out-1314.google.com with SMTP id k3so779287ugf for ; Fri, 27 Apr 2007 17:05:18 -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=d/FpJFmllHNAK99IrwVGmcNJPAsKLbU3bSWmygF1Oo+yjtwiT0bmXLAKRt/f4QKKah7F3ArUgHg2noa3iHeeqOLkTPZf83Dd9qjlOqzXNFHFxSwA68CnqlzJ2yKsE3bHwKIGmWHXnQ5/kbhiwN4QMvqgN4veQ7uvZ48hkFzclD0= 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=AhJPLUTvESUqKsi6yT5RI9Wqznt5JCUzItsn08RPg2fLYOVwprsWUuyrXZrEE2AU+9RkaLk/gvTNFT1mHUCOHtw9NSLIj9Iae+hIWCwV2q1TUHbXXNoGivfT1Wyr2jdaHuLVW39wECbKY52Y8gEsr2N6KPgdPUs0o13GcTRxByE= Received: by 10.66.224.19 with SMTP id w19mr3357265ugg.1177718718729; Fri, 27 Apr 2007 17:05:18 -0700 (PDT) Received: from ?192.168.1.34? ( [81.37.190.201]) by mx.google.com with ESMTP id j2sm6153269ugf.2007.04.27.17.05.17; Fri, 27 Apr 2007 17:05:17 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <78040751-B95B-4620-A995-A4AB74F5E997@gmail.com> References: <301C13B2-671A-40CE-AB6C-E92E0ED454E6@gmail.com> <78040751-B95B-4620-A995-A4AB74F5E997@gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <2A1A8C74-50D5-4F0B-815B-B56CA506578E@gmail.com> Content-Transfer-Encoding: 7bit From: Joel Reymont Subject: Re: ocamlbuild, menhir and keeping tokens in a separate file Date: Sat, 28 Apr 2007 01:05:17 +0100 To: Caml List X-Mailer: Apple Mail (2.752.3) X-j-chkmail-Score: MSGID : 46328FBE.003 on concorde : j-chkmail score : XXX : 5/20 1 0.000 -> 3 X-Miltered: at concorde with ID 46328FBE.003 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; tokens:01 ocaml:01 parser:01 ocaml:01 ocamldep:01 tokens:01 ocamldep:01 parser:01 token:01 mly:02 mly:02 file:08 file:08 head:91 flag:09 This is what I came up with: flag ["ocaml"; "parser"; "mehir" ] (A"--explain"); flag ["ocaml"; "menhir_ocamldep" ] (A"easy_tokens.mly"); flag ["ocaml"; "menhir_ocamldep" ] (A"--base"); flag ["ocaml"; "menhir_ocamldep" ] (A"easy_parser"); Can the 3 different (A"..")s be combined? This works but ocamlbuild doesn't know anything about easy_tokens and doesn't copy it to _build which results in a "file not found" error. Is there a way to say that this token file should always go on the command line with this mly file? Hardcoding like above only works if there's one parser in the project. I tried the following off of the top of my head but it doesn't work. dep ["ocaml"; "parser"; "menhir"; "tokens"] ["easy_tokens.mly"]; in _tags "easy_parser.mly": tokens Thanks, Joel -- http://wagerlabs.com/