🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.misc
Article #60

Re: Writing an expression evaluator

#60
From: Simen Svale Skogsrud
Date: Thu, 15 Feb 1996 20:38
25 lines
1744 bytes

On 15 Feb 1996, Taj Khattra wrote:

> Andrew Koenig (ark@research.att.com) wrote:
> : In article <311FEBD8.7305@cnj.digex.net> Aristotle <johndc@cnj.digex.net> writes:
> 
> : > Does anyone have any tips on how to go about writing an expression 
> : > evaluator(one complex enough to handle Trig. functions). I am writing a 
> : > program that uses expression and I would like to have the user be able to 
> : >  enter their own expressions and have my program implement them. Any help 
> : >  would be appreciated. Thanks in advance!
> 
> : Read ``The UNIX Programming Environment'' by Kernighan and Pike (Prentice-Hall).
> 
> The code for the calculator described in this bible is available at
> ftp://plan9.att.com/csrc/hoc.bundle.Z
> 

I have a expression evaluator written in Turbo Pascal, it is part of a 
numerical solver I wrote with Staale Schumacher years back. It is as far 
as I can remember quite stable and safe. You can have it if you want it. 
If I don't remember wrong it has some ability to "define" functions aswell.

Simen Svale Skogsrud
Technical Details
Message-ID: <Pine.SGI.3.91.960215213521.7418A-100000@notam>
Path: arc1-ca.pugleaf.net!nntp.uio.no!notam!simenss
References: <311FEBD8.7305@cnj.digex.net> <DMpuzv.rG@research.att.com> <4g0113$6ge@wolfe.wimsey.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!nntp.uio.no!notam!simenss
From: Simen Svale Skogsrud <simenss@ulrik.uio.no>
Newsgroups: comp.lang.pascal.misc,comp.lang.pascal.borland,comp.programming,comp.lang.misc,comp.lang.c,comp.lang.c++
Subject: Re: Writing an expression evaluator
Date: Thu, 15 Feb 1996 21:38:04 +0100
Organization: University of Oslo, Norway
Message-ID: <Pine.SGI.3.91.960215213521.7418A-100000@notam>
References: <311FEBD8.7305@cnj.digex.net> <DMpuzv.rG@research.att.com> <4g0113$6ge@wolfe.wimsey.com>
NNTP-Posting-Host: notam.uio.no
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: simenss@notam
In-Reply-To: <4g0113$6ge@wolfe.wimsey.com>