comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: sed and perl - yuck [Was Re: Preprocessor functionality equivalent ideas needed]
Date: Thu, 11 Dec 2003 18:12:56 +0100
Date: 2003-12-11T18:12:56+01:00	[thread overview]
Message-ID: <1255206.8rsULcRV6F@linux1.krischik.com> (raw)
In-Reply-To: m3he08tko7.fsf@insalien.org

Ludovic Brenta wrote:

> Another approach could be to simulate a preprocessor with sed or perl
> scripts.

Did that, hated it and wrote AdaCL. If you rather use Ada then perl and find
find sed cumbersome you should look at AdaCL.

If you disagree: Write a sed line which inserst "OS." bevore every
CD_Recorder -  but only if it is not allready there.

sarDo --serarch="CD_Recorder" --insert-before="OS." *.ad[bs]

There is no limit on the amout of text changes you can to with one call the
the command.

But realy cool thing about AdaCL is that it is a library and sarDo is only a
front end to it. If you need something more complex you can write an Ada
programm to do it.

See http://adacl.sourceforge.net for Details. Complete Source in GNATHTML is
available online. Browse the sar* and AdaCL-SAR-* Files.

With Regards

Martin

-- 
mailto://krischik@users.sourceforge.net
http://adacl.sourceforge.net




  reply	other threads:[~2003-12-11 17:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-10 20:04 Preprocessor functionality equivalent ideas needed Greg Milford
2003-12-10 21:41 ` Ludovic Brenta
2003-12-11 17:12   ` Martin Krischik [this message]
2003-12-16  0:40     ` sed and perl - yuck [Was Re: Preprocessor functionality equivalent ideas needed] Waldek Hebisch
2003-12-16 20:52       ` Martin Krischik
2003-12-10 22:29 ` Preprocessor functionality equivalent ideas needed Georg Bauhaus
2003-12-12  5:52   ` Simon Wright
2003-12-11  1:07 ` Jeffrey Carter
2003-12-11 13:34   ` Marin David Condic
2003-12-11 17:49     ` Jeffrey Carter
2003-12-11  5:39 ` Steve
2003-12-11 16:59 ` Martin Krischik
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox