Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #1637
| From | Rui Maciel <rui.maciel@gmail.com> |
|---|---|
| Newsgroups | comp.programming |
| Subject | Re: Suggestions for a preprocessor |
| Date | 2012-05-28 16:19 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <jq051s$jer$1@speranza.aioe.org> (permalink) |
| References | <jptkpd$shr$1@speranza.aioe.org> <500cea953a95c9b8c8212d840d9558a9@msgid.frell.theremailer.net> <jpvnnr$e2e$1@speranza.aioe.org> <jpvsbu$qes$1@dont-email.me> |
BartC wrote: > Why do you need a preprocessor? It seems to me that any simple language > will do the job. As the task consisted of, basically, defining a template for a document and, from that, create a series of documents by replacing a given variable with a value, it appeared that the best way to go around doing this would be with a macro processor. > Or is this example embedded in a mass of other text? Yes. Although the example I've provided is a bit slimsy on the details, basically what I intended to do was create a template for a document that defined a model in terms of a set of parameters. Then, that template would be used to create a series of models which reflected the way a given parameter was tweaked. > 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. Since I've started this thread, I've started writing a small Perl script to generate the models. Perl's support for here-document string literals appears to do a decent job at this. Rui Maciel
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar
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