Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #1634

Re: Suggestions for a preprocessor

From "BartC" <bc@freeuk.com>
Newsgroups comp.programming
Subject Re: Suggestions for a preprocessor
Date 2012-05-28 13:51 +0100
Organization A noiseless patient Spider
Message-ID <jpvsbu$qes$1@dont-email.me> (permalink)
References <jptkpd$shr$1@speranza.aioe.org> <500cea953a95c9b8c8212d840d9558a9@msgid.frell.theremailer.net> <jpvnnr$e2e$1@speranza.aioe.org>

Show all headers | View raw


"Rui Maciel" <rui.maciel@gmail.com> wrote in message
news:jpvnnr$e2e$1@speranza.aioe.org...
> Fritz Wuehler wrote:
>
>> Rui Maciel <rui.maciel@gmail.com> wrote:
>>
>>> If you were given the task of generating a set of text files whose
>>> different versions differed only in a set of numerical values, which
>>> tool
>>> would you choose?
>>
>> diff?
>
> The objective is to generate a set of files with present different values
> specified by a parameter.  For example, let's assume we have this
> template:
>
> <example>
> Line (0,0) (XX,YY)
> </example>
>
> And, based on this template, a user intended to define N different data
> files, each one with different values for (XX, YY), with the values for XX
> and YY being defined in terms of an arbitrary algebraic expression.

Why do you need a preprocessor? It seems to me that any simple language will
do the job.

Or is this example embedded in a mass of other text? Perhaps a more complete
example is needed. Even then, if the input is line oriented (so you don't
need macro expansions in the middle of a line, and don't need nested 
macros), a simple language might still work.

-- 
Bartc 

Back to comp.programming | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Suggestions for a preprocessor Rui Maciel <rui.maciel@gmail.com> - 2012-05-27 17:29 +0100
  Re: Suggestions for a preprocessor Fritz Wuehler <fritz@spamexpire-201205.rodent.frell.theremailer.net> - 2012-05-28 02:16 +0200
    Re: Suggestions for a preprocessor Rui Maciel <rui.maciel@gmail.com> - 2012-05-28 12:32 +0100
      Re: Suggestions for a preprocessor "BartC" <bc@freeuk.com> - 2012-05-28 13:51 +0100
        Re: Suggestions for a preprocessor Rui Maciel <rui.maciel@gmail.com> - 2012-05-28 16:19 +0100
          Re: Suggestions for a preprocessor Rui Maciel <rui.maciel@gmail.com> - 2012-05-28 16:43 +0100
      Re: Suggestions for a preprocessor "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2012-05-28 14:45 +0100
        Re: Suggestions for a preprocessor Rui Maciel <rui.maciel@gmail.com> - 2012-05-28 16:21 +0100
          Re: Suggestions for a preprocessor Patricia Shanahan <pats@acm.org> - 2012-05-28 16:33 -0700
      Re: Suggestions for a preprocessor Nomen Nescio <nobody@dizum.com> - 2012-05-28 16:46 +0200
  Re: Suggestions for a preprocessor Ian Collins <ian-news@hotmail.com> - 2012-05-29 07:50 +1200

csiph-web