From: Remi Vanicat <remi.vanicat@laposte.net>
To: caml-list@inria.fr
Subject: Re: [Caml-list] changing the filename in errors reported by ocamlyacc and ocamllex
Date: Thu, 06 May 2004 16:16:09 +0200 [thread overview]
Message-ID: <87isf9k5ee.dlv@vanicat.homelinux.org> (raw)
In-Reply-To: <r77brl1ll1f.fsf@muscadet.inria.fr> (James Leifer's message of "Thu, 06 May 2004 15:53:00 +0200")
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
next prev parent reply other threads:[~2004-05-06 14:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-06 13:53 James Leifer
2004-05-06 14:16 ` Remi Vanicat [this message]
2004-05-06 14:44 ` James Leifer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87isf9k5ee.dlv@vanicat.homelinux.org \
--to=remi.vanicat@laposte.net \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox