From: Erik de Castro Lopo <mle+ocaml@mega-nerd.com>
To: "Christoph Bauer" <Christoph.Bauer@lmsintl.com>
Cc: <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Handling include files using ocamllex
Date: Thu, 2 Aug 2007 20:42:58 +1000 [thread overview]
Message-ID: <20070802204258.30b46ab8.mle+ocaml@mega-nerd.com> (raw)
In-Reply-To: <BB046CA812535C45BD0029AA9D04BA79012BFA38@KL-SRV57.lmsintl.com>
Christoph Bauer wrote:
> A solution could be to create an lexbuf from a function with
> Lexing.from_function.
>
> This function has to manage a stack of open channels and positions. It
> has to scan for "#include"-statements and copies instead of these
> statements the contents of the corresponding files into the buffer.
Nice idea Christoph. I'll give it a try.
Cheers,
Erik
--
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
The government everybody loves to abuse sues the company everybody loves
to hate. Throw in a bunch of faceless lawyers cross-examining techies
[with] all the charisma of a video driver and you've got a spectacle of
thoroughly miniscule proportions.
next prev parent reply other threads:[~2007-08-02 10:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-02 10:09 Erik de Castro Lopo
2007-08-02 10:29 ` [SPAM?][Caml-list] " Christoph Bauer
2007-08-02 10:42 ` Erik de Castro Lopo [this message]
2007-08-02 13:19 ` skaller
2007-08-05 4:52 ` [Caml-list] " Erik de Castro Lopo
2007-08-05 5:35 ` Erik de Castro Lopo
2007-08-05 10:16 ` skaller
2007-08-05 10:33 ` Erik de Castro Lopo
2007-08-05 11:55 ` Jacques GARRIGUE
2007-08-05 12:17 ` Erik de Castro Lopo
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=20070802204258.30b46ab8.mle+ocaml@mega-nerd.com \
--to=mle+ocaml@mega-nerd.com \
--cc=Christoph.Bauer@lmsintl.com \
--cc=caml-list@yquem.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