From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,307922288ad662c8 X-Google-Attributes: gid103376,public From: Dale Stanbrough Subject: Re: REQ: Expression parser Date: 1998/01/21 Message-ID: <6a5ptp$8br$1@goanna.cs.rmit.edu.au>#1/1 X-Deja-AN: 318191369 Content-Transfer-Encoding: 8bit References: <34C6BC92.62F1@friko2.onet.pl> X-XXMessage-ID: Mime-Version: 1.0 Distribution: world Content-Type: text/plain; charset=ISO-8859-1 Organization: RMIT Newsgroups: comp.lang.ada Date: 1998-01-21T00:00:00+00:00 List-Id: "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