From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA13869; Thu, 6 May 2004 15:53:04 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA13479 for ; Thu, 6 May 2004 15:53:03 +0200 (MET DST) Received: from muscadet.inria.fr (muscadet.inria.fr [128.93.8.12]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i46Dr2SH027036 for ; Thu, 6 May 2004 15:53:02 +0200 Received: by muscadet.inria.fr (Postfix, from userid 11404) id 585307A5F; Thu, 6 May 2004 15:53:00 +0200 (CEST) To: caml-list@inria.fr Subject: [Caml-list] changing the filename in errors reported by ocamlyacc and ocamllex Reply-To: James Leifer From: James Leifer Date: Thu, 06 May 2004 15:53:00 +0200 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at concorde with ID 409A433E.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; foo:01 foo:01 indirection:01 stdout:01 stderr:01 filenames:01 makefile:02 perl:03 mly:03 ocamlyacc:05 ocamlyacc:05 ocamllex:05 ocamllex:05 i'd:06 source:07 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello. Anyone know how to get ocamlyacc and ocamllex to report errors in a filename different from the one that they are processing? The reason I ask is that I'm *generating* foo.mll and foo.mly from another set of files (every problem in computer science being susceptible to an added level of indirection 8-)). I'd like the get the errors reported in the source rather than generated file. Of course my Makefile *can* pipe the stdout and stderr of ocamllex and yacc through a perl script that renames the filenames in the error reports, but that's obscene. Ideas? -James ------------------- 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