comp.lang.ada
 help / color / mirror / Atom feed
* Package for text filtering?
@ 2005-02-11 11:44 Preben Randhol
  2005-02-11 11:56 ` Marius Amado Alves
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Preben Randhol @ 2005-02-11 11:44 UTC (permalink / raw)


Hi

I need to filter a resultfile produced by a program (only executable
availabel) so I can get the different results I'm interested in. I need
to do it in Ada (so no hints about python, perl etc ;-) ) but I thought
that there must be some packages (besides the GNAT pacakges) available
to ease the filtering.

So links/hints most welcomed.

Preben



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package for text filtering?
  2005-02-11 11:44 Package for text filtering? Preben Randhol
@ 2005-02-11 11:56 ` Marius Amado Alves
  2005-02-11 13:21 ` Martin Krischik
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Marius Amado Alves @ 2005-02-11 11:56 UTC (permalink / raw)
  To: Preben Randhol; +Cc: comp.lang.ada

> I need to filter a resultfile produced by a program (only executable
> availabel) so I can get the different results I'm interested in. I need
> to do it in Ada (so no hints about python, perl etc ;-) ) but I thought
> that there must be some packages (besides the GNAT pacakges) available
> to ease the filtering.

GNAT includes nice string pattern matching packages. The best for me is 
GNAT.Spitbol.

There is also Open_Token out there.

(I should start collecting referral commissions :-)




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package for text filtering?
  2005-02-11 11:44 Package for text filtering? Preben Randhol
  2005-02-11 11:56 ` Marius Amado Alves
@ 2005-02-11 13:21 ` Martin Krischik
  2005-02-11 14:25   ` Martin Krischik
  2005-02-11 13:25 ` Dmitry A. Kazakov
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 9+ messages in thread
From: Martin Krischik @ 2005-02-11 13:21 UTC (permalink / raw)


Preben Randhol wrote:

> I need to filter a resultfile produced by a program (only executable
> availabel) so I can get the different results I'm interested in. I need
> to do it in Ada (so no hints about python, perl etc ;-) ) but I thought
> that there must be some packages (besides the GNAT pacakges) available
> to ease the filtering.

AdaCL (http://adacl.sourceforge.net) has a powerfull - yet easy to use -
text filter library.  And it's a class library - if what you need is
missing  you can extened it.

Look at the sarDO source to see how it works:

http://adacl.sourceforge.net/html/sarDo-CommandLine__adb.htm

Martin
-- 
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package for text filtering?
  2005-02-11 11:44 Package for text filtering? Preben Randhol
  2005-02-11 11:56 ` Marius Amado Alves
  2005-02-11 13:21 ` Martin Krischik
@ 2005-02-11 13:25 ` Dmitry A. Kazakov
  2005-02-11 13:53 ` Jeff C
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Dmitry A. Kazakov @ 2005-02-11 13:25 UTC (permalink / raw)


On Fri, 11 Feb 2005 11:44:57 +0000 (UTC), Preben Randhol wrote:

> I need to filter a resultfile produced by a program (only executable
> availabel) so I can get the different results I'm interested in. I need
> to do it in Ada (so no hints about python, perl etc ;-) ) but I thought
> that there must be some packages (besides the GNAT pacakges) available
> to ease the filtering.

OK, besides GNAT's spitbol:

http://www.dmitry-kazakov.de/ada/components.htm
- this project contains parsers for elaborated infix expressions of any
kind (in case your output has something like 2+5*(3-6))

http://www.dmitry-kazakov.de/ada/strings_edit.htm
- this is a set of simple tools for parsing and formatting strings

http://www.dmitry-kazakov.de/match/match.htm
- this is pattern matching, though written in K&R/ANSI C, it has Ada
interface.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package for text filtering?
  2005-02-11 11:44 Package for text filtering? Preben Randhol
                   ` (2 preceding siblings ...)
  2005-02-11 13:25 ` Dmitry A. Kazakov
@ 2005-02-11 13:53 ` Jeff C
  2005-02-12  0:51 ` Jeffrey Carter
  2005-02-13  1:35 ` Steve
  5 siblings, 0 replies; 9+ messages in thread
From: Jeff C @ 2005-02-11 13:53 UTC (permalink / raw)


Preben Randhol wrote:
> Hi
> 
> I need to filter a resultfile produced by a program (only executable
> availabel) so I can get the different results I'm interested in. I need
> to do it in Ada (so no hints about python, perl etc ;-) ) but I thought
> that there must be some packages (besides the GNAT pacakges) available
> to ease the filtering.
> 
> So links/hints most welcomed.
> 
> Preben

While I have not used this...I strongly recommend taking a look at it 
since I think it was designed with what you have in mind.

http://adacl.sourceforge.net/



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package for text filtering?
  2005-02-11 13:21 ` Martin Krischik
@ 2005-02-11 14:25   ` Martin Krischik
  2005-02-11 17:57     ` Preben Randhol
  0 siblings, 1 reply; 9+ messages in thread
From: Martin Krischik @ 2005-02-11 14:25 UTC (permalink / raw)


Martin Krischik wrote:

> Preben Randhol wrote:
> 
>> I need to filter a resultfile produced by a program (only executable
>> availabel) so I can get the different results I'm interested in. I need
>> to do it in Ada (so no hints about python, perl etc ;-) ) but I thought
>> that there must be some packages (besides the GNAT pacakges) available
>> to ease the filtering.
> 
> AdaCL (http://adacl.sourceforge.net) has a powerfull - yet easy to use -
> text filter library.  And it's a class library - if what you need is
> missing  you can extened it.
> 
> Look at the sarDO source to see how it works:
> 
> http://adacl.sourceforge.net/html/sarDo-CommandLine__adb.htm

I forgot to mention: the I/O modules are also classes and can be replaced
with specialised versions.

Currently available:

Textfile_1 => Textfile_2    where both files can be the same.
Textfile => Standart_Output   as part of the CGI package.

Martin

-- 
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package for text filtering?
  2005-02-11 14:25   ` Martin Krischik
@ 2005-02-11 17:57     ` Preben Randhol
  0 siblings, 0 replies; 9+ messages in thread
From: Preben Randhol @ 2005-02-11 17:57 UTC (permalink / raw)


On 2005-02-11, Martin Krischik <martin@krischik.com> wrote:
> Martin Krischik wrote:
>> Look at the sarDO source to see how it works:
>> 
>> http://adacl.sourceforge.net/html/sarDo-CommandLine__adb.htm
>
> I forgot to mention: the I/O modules are also classes and can be replaced
> with specialised versions.
>
> Currently available:
>
> Textfile_1 => Textfile_2    where both files can be the same.
> Textfile => Standart_Output   as part of the CGI package.

Great I'll check it out!

Thanks all for the feedback!

Preben



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package for text filtering?
  2005-02-11 11:44 Package for text filtering? Preben Randhol
                   ` (3 preceding siblings ...)
  2005-02-11 13:53 ` Jeff C
@ 2005-02-12  0:51 ` Jeffrey Carter
  2005-02-13  1:35 ` Steve
  5 siblings, 0 replies; 9+ messages in thread
From: Jeffrey Carter @ 2005-02-12  0:51 UTC (permalink / raw)


Preben Randhol wrote:

> I need to filter a resultfile produced by a program (only executable
> availabel) so I can get the different results I'm interested in. I need
> to do it in Ada (so no hints about python, perl etc ;-) ) but I thought
> that there must be some packages (besides the GNAT pacakges) available
> to ease the filtering.

The PragmAda Reusable Components include regular expression matching. 
There's an example program, strmsub, that's a stream editor and was 
pretty easy to create.

http://home.earthlink.net/~jrcarter010/pragmarc.htm

-- 
Jeff Carter
"If you think you got a nasty taunting this time,
you ain't heard nothing yet!"
Monty Python and the Holy Grail
23



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package for text filtering?
  2005-02-11 11:44 Package for text filtering? Preben Randhol
                   ` (4 preceding siblings ...)
  2005-02-12  0:51 ` Jeffrey Carter
@ 2005-02-13  1:35 ` Steve
  5 siblings, 0 replies; 9+ messages in thread
From: Steve @ 2005-02-13  1:35 UTC (permalink / raw)


I have used Aflex and Ayacc.  I had an old Ada 83 version I had to doctor up 
to work with GNAT (several years ago).  It looks like there are versions 
available on AdaPower:

http://www.adapower.com/index.php?Command=Class&ClassID=Utilities&Title=Ada+Utilities

There is a little bit of a learning curve, but they are powerful tools.

Steve
(The Duck)


"Preben Randhol" <randhol@bacchus.pvv.ntnu.no> wrote in message 
news:slrnd0p6lp.2upb.randhol@bacchus.pvv.ntnu.no...
> Hi
>
> I need to filter a resultfile produced by a program (only executable
> availabel) so I can get the different results I'm interested in. I need
> to do it in Ada (so no hints about python, perl etc ;-) ) but I thought
> that there must be some packages (besides the GNAT pacakges) available
> to ease the filtering.
>
> So links/hints most welcomed.
>
> Preben 





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-02-13  1:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-11 11:44 Package for text filtering? Preben Randhol
2005-02-11 11:56 ` Marius Amado Alves
2005-02-11 13:21 ` Martin Krischik
2005-02-11 14:25   ` Martin Krischik
2005-02-11 17:57     ` Preben Randhol
2005-02-11 13:25 ` Dmitry A. Kazakov
2005-02-11 13:53 ` Jeff C
2005-02-12  0:51 ` Jeffrey Carter
2005-02-13  1:35 ` Steve

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