Donald,

What happens if the "Mighty Ducks" or the "White Sox"--or my
favorite, "Eat at Joe's" play?  The compiler reads strings just fine
but you as the programmer need to understand data types.  You also
need to understand your problem.  Parsing arbitrary and possibly
inconsistent psuedo-English sentences is a very, very hard job and no
compiler is going to get it right.

That said, I suggest you check out regular expressions.  I believe I
saw a regex support somewhere for FPC but I haven't used it with FPC.
   They are the technology for making many (but not all) simple
parsing problems easy.  In order to use regex's, you'll see that you
first have to have a good grasp of how you want data parsed.

-Alan


--- DONALD PEDDER <[EMAIL PROTECTED]> wrote:
> > here is just another approach.
> 
>    I'll have a look at that as well. Why doesn't the compiler have
> the
> ability to read a word? All of this extra code needed because I
> have to
> read words one character at a time! It would be the single most
> useful
> addition. I don't understand why compilers have no problems reading
> multi-digit numbers in one hit, but can't do the same with words.
> 
> thanks,
>   dp.
> 
> 
> _______________________________________________
> fpc-pascal maillist  -  [EMAIL PROTECTED]
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

_______________________________________________
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to