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 41938BC6B for ; Sat, 28 Apr 2007 09:55:33 +0200 (CEST) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.225]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l3S7tW7b012323 for ; Sat, 28 Apr 2007 09:55:32 +0200 Received: by nz-out-0506.google.com with SMTP id l8so1481636nzf for ; Sat, 28 Apr 2007 00:55:32 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pXcxoySg3BKBR9cJu8sxHOgrpFKvb6gx1b5iCnSE89BbJlCcxIYEErCdawbzFUPgMDae4nEcNsNXCKAbYyrpsJJaZThkfwb/ISCP6TO74oK5lGftUy+kpTrFndkwJ/5BvZs26URX4BzUUsuJrv8hdoWwxqrcP2WZ+kDByi1rN8w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hqJFByFVIQHQnQ7OpL5lSEaqmiZfQU1Q5ojBAvneFHEdOftxuwqT/6jWbpol52IHOSyZGW/Ve09bjEJWQHNcuPOUG4qLf0yNTqYK2Q3/jqcH1HpfmAb0wWgmXJE8a9+KQHF2rTfvSh0MH8/CvGuYe5VNb3QcrKA9Y/dTe+sIG7c= Received: by 10.115.32.1 with SMTP id k1mr1294462waj.1177746931762; Sat, 28 Apr 2007 00:55:31 -0700 (PDT) Received: by 10.114.181.18 with HTTP; Sat, 28 Apr 2007 00:55:31 -0700 (PDT) Message-ID: Date: Sat, 28 Apr 2007 09:55:31 +0200 From: "Nicolas Pouillard" To: "Joel Reymont" Subject: Re: [Caml-list] ocamlbuild and menhir options Cc: "Caml List" In-Reply-To: <56F499BA-47E2-4C89-982B-3FE23819FAA0@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <56F499BA-47E2-4C89-982B-3FE23819FAA0@gmail.com> X-j-chkmail-Score: MSGID : 4632FDF4.001 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 4632FDF4.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocamlyacc:01 parser:01 parser:01 tokens:01 flags:01 ocaml:01 -linkpkg:01 ocaml:01 -output-obj:01 flags:01 wrote:01 caml-list:01 oops:01 mly:02 mly:02 On 4/27/07, Joel Reymont wrote: > Nicolas, > > > Oops, you're right yaccflags is just for ocamlyacc (I will fix it). > > > > Another solution can be: -ocamlyacc "menhir --explain" > > I actually need to run Menhir like this: > > menhir --base easy_parser easy_parser.mly easy_tokens.mly > > I already have flags like these in myocamlbuild.ml > > flag ["ocaml"; "link"] (A"-linkpkg");; > flag ["ocaml"; "link"; "output_obj"] (A"-output-obj"); > > How would I add the flags for Menhir? Instead of giving you the fish, there is a fishing advice! You should look at the _log file produced by ocamlbuild, there is lines like: # Target: , tags: { } If you search for the menhir command you will find the tag list associated (something like ocaml, parser, menhir), then you can add a flag declaration to inject things a this particular point of the build. Regards, -- Nicolas Pouillard