[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Conditional compiling of flex file
From: |
Vincent Zweije |
Subject: |
RE: Conditional compiling of flex file |
Date: |
Mon, 26 May 2003 08:10:24 +0200 |
Cory Benjamin wrote:
|| Instead of creating and having to maintain a separate flex
|| file, I would
|| like to be able to have flex conditionally compile the
|| file. Standard
|| #include, #ifdefs of course will not work since flex
|| doesn't process those,
|| and while I could #ifdef the logic inside each token, I
|| don't want to even
|| include the flex tables for tokens I won't ever need if I
|| don't have to.
How about creating a foo.l.cpp with any #-directive you want,
and feeding that by a make rule to the C preprocessor to get
the bar.l and baz.l you want?
Ciao. Vincent.
--
Answer: no.
Question: should I reply before the quote?