Browse thread
[Caml-list] changing the filename in errors reported by ocamlyacc and ocamllex
- James Leifer
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2004-05-06 (13:53) |
From: | James Leifer <James.Leifer@i...> |
Subject: | [Caml-list] changing the filename in errors reported by ocamlyacc and ocamllex |
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