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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,975b46ec27c036e5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-01 10:36:32 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Need help for a Calculator program Date: 01 Feb 2002 13:17:30 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1012587696 2197 128.183.220.71 (1 Feb 2002 18:21:36 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 1 Feb 2002 18:21:36 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:19500 Date: 2002-02-01T18:21:36+00:00 List-Id: genx54321@hotmail.com (Jim) writes: > ive been reading that online book > http://www.it.bton.ac.uk/staff/je/adacraft/ > > > it tell you how to program a calculator throughout the book, starting > with basic adding and then going on to operator procedence(well i > havent reached this stage yet) but the second part of the calculator > program (chapter ) you enter an expression eg 1 + 2 + 3 * 4. but you > have to end the expression with a full stop. Is there a way where you > dont have to enter a full stop. > > the program itself is in the link: > http://www.it.bton.ac.uk/staff/je/adacraft/ch03.htm#3.8 > > > th full stop is used for a condition, if you put a full stop there it > will end a loop for 'getting' operators and then the program will > continue with calculating the expression. > > could someone have a look at it for me plz ? This sounds like homework; please say "it's not homework" if it isn't :). I'm not clear what you are asking for. I guess "full stop" means "hit the return key" or "generate end of line" or something. Why do you want to get rid of that? -- -- Stephe