Article View: comp.lang.pascal.delphi.misc
Article #453Text file pre-processor
From: Oleg Serebryany
Date: Tue, 11 May 1999 00:00
Date: Tue, 11 May 1999 00:00
24 lines
1708 bytes
1708 bytes
Hello All, I am looking for a way to pre-process a text file (any text file). Does anyone know of a tool, component, or just Delphi or Pascal source code that takes a text file, and using some syntax within the file to: - Expand macros - Allow conditional inclusion or exclusion of text lines based on DEFINEs or something along those lines. - Include other files Ideally, this tool would either produce a result text file or return a Delphi string list with the result text lines. I prefer to compile the tool right into the product. The tool could even be a C-style pre-processor for handling #define, #include, etc. Our text file is a large custom data dictionary for a FlashFiler database. I would like to use conditional inclusion and macros to maintain only one copy of this file while supporting all variations of the core product. Any help is much appreciated. Oleg Serebryany ICG Research Incorporated
Technical Details
Message-ID:
<37387F3E.FB2BC8F1@icgresearch.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10baee,2dd8dc035a76e52e,start X-Google-Attributes: gid10baee,public X-Google-Thread: f8256,2dd8dc035a76e52e,start X-Google-Attributes: gidf8256,public X-Google-Thread: 111659,2dd8dc035a76e52e,start X-Google-Attributes: gid111659,public From: Oleg Serebryany <oms@icgresearch.com> Subject: Text file pre-processor Date: 1999/05/11 Message-ID: <37387F3E.FB2BC8F1@icgresearch.com> X-Deja-AN: 476702725 Content-Transfer-Encoding: 7bit Organization: Interlog Internet Services Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 NNTP-Posting-Time: 11 May 1999 19:04:57 GMT Newsgroups: comp.lang.pascal.delphi.misc,comp.lang.pascal.borland,borland.public.delphi.thirdparty-tools