🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.misc
Article #452

Re: Text file pre-processor

#452
From: Frank Peelo
Date: Wed, 12 May 1999 00:00
30 lines
1809 bytes
Oleg Serebryany wrote in message
<37387F3E.FB2BC8F1@icgresearch.com>...
>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


Sorry, I don't know of one which you can download, but if you
have a C or C++ compiler you may be able to use its preprocessor.
I have Borland C++ 4.5 on my machine and there is a separate
preprocessor (CPP.EXE) in the package. This takes the source and
just obeys the preprocessor directives, dumping its output to a
text file. (Use -P- or you get file name info in the output
file.) I think it's for debugging complicated macros, but it
sounds like it might be what you're looking for. But where you
get it, I don't know.


FP
Technical Details
Message-ID: <7hc3iv$424$2@ezekiel.eunet.ie>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37387F3E.FB2BC8F1@icgresearch.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10baee,2dd8dc035a76e52e
X-Google-Attributes: gid10baee,public
X-Google-Thread: 111659,2dd8dc035a76e52e
X-Google-Attributes: gid111659,public
X-Google-Thread: f8256,2dd8dc035a76e52e
X-Google-Attributes: gidf8256,public
From: "Frank Peelo" <fpeelo@indigo.ie>
Subject: Re: Text file pre-processor
Date: 1999/05/12
Message-ID: <7hc3iv$424$2@ezekiel.eunet.ie>
X-Deja-AN: 477024032
Content-Transfer-Encoding: 7bit
References: <37387F3E.FB2BC8F1@icgresearch.com>
Content-Type: text/plain; charset="iso-8859-1"
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Organization: EUnet Ireland customer
Mime-Version: 1.0
Newsgroups: comp.lang.pascal.delphi.misc,comp.lang.pascal.borland,borland.public.delphi.thirdparty-tools