comp.lang.ada
 help / color / mirror / Atom feed
From: Dale Stanbrough <dale@goanna.cs.rmit.edu.au>
Subject: Re: REQ: Expression parser
Date: 1998/01/21
Date: 1998-01-21T00:00:00+00:00	[thread overview]
Message-ID: <6a5ptp$8br$1@goanna.cs.rmit.edu.au> (raw)
In-Reply-To: 34C6BC92.62F1@friko2.onet.pl


"Hello, I just started coding in ada, so I have problems, esp. with
string 
 handling since it's much different from C or pascal style... I'd love to 
 see an example of expression parser (like getting "2+2" string and
giving 
 integer=4). I also know that string in ada is saved as
(first,last,*text) 
 but I don't know if there's any simply method of changing first and last.
 thanks for any help, regards



Try using the Ada.Strings.Unbounded.Unbounded_String type, this has a very
intuitive set of routines. You can easily build up an i/o package to read
these values in from the user.

Unfortunately it seems some of the more common textbooks seem to overlook
this
very useful type.


Dale




  reply	other threads:[~1998-01-21  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-21  0:00 REQ: Expression parser dagoon
1998-01-21  0:00 ` Dale Stanbrough [this message]
1998-01-22  0:00 ` Robert Dewar
replies disabled

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