* [Caml-list] changing the filename in errors reported by ocamlyacc and ocamllex
@ 2004-05-06 13:53 James Leifer
2004-05-06 14:16 ` Remi Vanicat
0 siblings, 1 reply; 3+ messages in thread
From: James Leifer @ 2004-05-06 13:53 UTC (permalink / raw)
To: caml-list
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] changing the filename in errors reported by ocamlyacc and ocamllex
2004-05-06 13:53 [Caml-list] changing the filename in errors reported by ocamlyacc and ocamllex James Leifer
@ 2004-05-06 14:16 ` Remi Vanicat
2004-05-06 14:44 ` James Leifer
0 siblings, 1 reply; 3+ messages in thread
From: Remi Vanicat @ 2004-05-06 14:16 UTC (permalink / raw)
To: caml-list
James Leifer <James.Leifer@inria.fr> writes:
> 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?
The caml team have just added support of #line directive for ocamllex
and ocamlyacc (just as in this week). I believe that if you don't want
to use the cvs version, there is no many solution (perhaps only to
extract just the patch for ocamllex/ocamlyacc).
--
Rémi Vanicat
-------------------
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] changing the filename in errors reported by ocamlyacc and ocamllex
2004-05-06 14:16 ` Remi Vanicat
@ 2004-05-06 14:44 ` James Leifer
0 siblings, 0 replies; 3+ messages in thread
From: James Leifer @ 2004-05-06 14:44 UTC (permalink / raw)
To: caml-list
Remi Vanicat <remi.vanicat@laposte.net> writes:
<snip>
> The caml team have just added support of #line directive for ocamllex
> and ocamlyacc (just as in this week).
Thanks for the pointer!
-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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-05-06 14:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-06 13:53 [Caml-list] changing the filename in errors reported by ocamlyacc and ocamllex James Leifer
2004-05-06 14:16 ` Remi Vanicat
2004-05-06 14:44 ` James Leifer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox