comp.lang.ada
 help / color / mirror / Atom feed
From: gmckee@cloudnine.com (Gary McKee)
Subject: Re: Looking for calc. package in Ada
Date: 1996/06/27
Date: 1996-06-27T00:00:00+00:00	[thread overview]
Message-ID: <ADF8522C96689309@p5.denver2.dialup.csn.net> (raw)
In-Reply-To: 4qp7vu$c9f$1@mhafn.production.compuserve.com

In article <4qp7vu$c9f$1@mhafn.production.compuserve.com>,
Strategies SA <100747.2001@CompuServe.COM> wrote:

 > Hello
 > I'm looking for a package looking like :
 > 
 > package CALCULATOR is 
 >    ...
 >    procedure STORE_VARIABLE is (NAME : STRING;
 > 				VALUE : FLOAT);
 > 
 >    function CALCULATE (EXPRESSION : STRING) 
 > 	return FLOAT;
 >    ...
 > end CALCULATOR;
 > 
 > In order to use it the following way 
 >    ...
 >    CALCULATOR.STORE_VARIABLE ("A", 10.0);
 >    ...
 >    RESULT := CALCULATOR.EVALUATE ("10*COS(A)");
 >    ...
 > Does anybody know where I can find (good) inspiration ? 
 > Thank You in advance
 > 
 > Jerome HAGUET
 > Strategies 
 > France

---------------------------------------------------------------
I don't have an Ada package to do this. However, There is a simple dseign
(in C++) if you decide to implement it yourself.

"The C++ Programming Language" by Bjarne Stroustrup (2nd edition) has a
simple interactive calculator in Chapter three that could be a basis for
your Ada package.








  reply	other threads:[~1996-06-27  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-25  0:00 Looking for calc. package in Ada Strategies SA
1996-06-27  0:00 ` Gary McKee [this message]
1996-06-27  0:00 ` Nasser Abbasi
1996-06-28  0:00 ` k. beitz
replies disabled

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