Browse thread
Handling include files using ocamllex
[
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: | 2007-08-02 (10:43) |
From: | Erik de Castro Lopo <mle+ocaml@m...> |
Subject: | Re: [Caml-list] Handling include files using ocamllex |
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.