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,d5ed2292349acc76 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-20 00:02:22 PST From: "Phil Thornley" Newsgroups: comp.lang.ada References: <3C727CCF.505D83E0@brighton.ac.uk> Subject: Re: Calculator and Operator Precedence Date: Wed, 20 Feb 2002 08:03:08 -0000 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 NNTP-Posting-Host: 172.31.7.65 Message-ID: <3c73580c$1@pull.gecm.com> X-Trace: 20 Feb 2002 08:02:20 GMT, 172.31.7.65 Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!btnet-peer1!btnet-feed5!btnet!newreader.ukcore.bt.net!pull.gecm.com!172.31.7.65 Xref: archiver1.google.com comp.lang.ada:20162 Date: 2002-02-20T08:03:08+00:00 List-Id: "jon" 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