comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: how to parse words from a string
Date: Thu, 14 Nov 2002 18:45:03 GMT
Date: 2002-11-14T18:45:03+00:00	[thread overview]
Message-ID: <3DD3EF12.3010009@acm.org> (raw)
In-Reply-To: a04a773e.0211140540.5bcaa2ad@posting.google.com

Sarah Thomas wrote:
> Interesting follow ups! thanks for the input and help ! 
> I have succesfully extracted words from a string.
> I read each line in from the file
> and used find_token, followed by slice, followed by deleting the word
> from the string..and then stored them in a fixed array for now..

Another approach is to parse the words as you read the file; for an 
example, see PragmARC.Word_Input from the PragmAda Reusable Components

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

-- 
Jeff Carter
"I spun around, and there I was, face to face with a
six-year-old kid. Well, I just threw my guns down and
walked away. Little bastard shot me in the ass."
Blazing Saddles




  parent reply	other threads:[~2002-11-14 18:45 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-12 19:33 how to parse words from a string Sarah Thomas
2002-11-12 20:15 ` Stephen Leake
2002-11-12 20:16 ` Simon Wright
2002-11-13 10:17 ` Caffeine Junky
2002-11-14  2:10   ` Chad R. Meiners
2002-11-14  2:40     ` Caffeine Junky
2002-11-14  3:09       ` sk
2002-11-14  5:31         ` Dennis Lee Bieber
2002-11-14 13:40           ` Sarah Thomas
2002-11-14 14:56             ` David C. Hoos
2002-11-14 18:45             ` Jeffrey Carter [this message]
2002-11-17  8:40               ` Mário Amado Alves
2002-11-17 21:14                 ` Jeffrey Carter
2002-11-18 11:00                   ` Mário Amado Alves
2002-11-18 19:23                     ` Jeffrey Carter
replies disabled

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