comp.lang.ada
 help / color / mirror / Atom feed
From: "Phil Thornley" <phil.thornley@baesystems.com>
Subject: Re: Calculator and Operator Precedence
Date: Wed, 20 Feb 2002 08:03:08 -0000
Date: 2002-02-20T08:03:08+00:00	[thread overview]
Message-ID: <3c73580c$1@pull.gecm.com> (raw)
In-Reply-To: 3C727CCF.505D83E0@brighton.ac.uk

"jon" <jkjw@brighton.ac.uk> wrote in message
news:3C727CCF.505D83E0@brighton.ac.uk...
> i ve built a basic calculator which asks user for expression using a
> console.
>
> eg
>
> Enter expression : 1 + 2 + 3 * 4
>
> now i need to make it so it can handle Operator Precendence
>
> whats the best way of doing this ? Arrays ?
>

Well, a calculator is one of the examples that runs through the Ada
textbook freely available at:
http://www.adaic.org/docs/craft/html/contents.htm

(Written by someone not too far from brighton.ac.uk :-)

Cheers,

Phil

--
Phil Thornley
Programmes, Engineering
Warton





  parent reply	other threads:[~2002-02-20  8:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-19 16:26 Calculator and Operator Precedence jon
2002-02-19 17:24 ` Stephen Leake
2002-02-19 20:00 ` Matthew Heaney
2002-02-20  8:03 ` Phil Thornley [this message]
2002-02-20 15:28   ` Jon
2002-02-20 15:45     ` John English
2002-02-22 16:10       ` Steven Deller
2002-02-22 16:55         ` Jean-Marc Bourguet
2002-02-25  9:17           ` Dmitry A. Kazakov
2002-02-22 20:14         ` Vadim Godunko
replies disabled

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