🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Writing an expression evaluator

#3
From: anh
Date: Tue, 20 Feb 1996 01:46
14 lines
1070 bytes
Have you tried LEX and YACC? The tools could be an overkill but for more 
complex parsing stuff, they will save you time.

Anh

In article <31251AAF.2D0B@harrier.bldrdoc.gov>, "G. C. Straty" <straty@harrier.bldrdoc.gov> writes:
> Aristotle wrote:
>> 
>> 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!
>> 
Technical Details
Message-ID: <1996Feb19.194610.114372@kuhub.cc.ukans.edu>
Path: arc1-ca.pugleaf.net!kuhub.cc.ukans.edu!anh
References: <311FEBD8.7305@cnj.digex.net> <31251AAF.2D0B@harrier.bldrdoc.gov>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!kuhub.cc.ukans.edu!anh
From: anh@kuhub.cc.ukans.edu
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
Message-ID: <1996Feb19.194610.114372@kuhub.cc.ukans.edu>
Date: 19 Feb 96 19:46:10 CST
References: <311FEBD8.7305@cnj.digex.net> <31251AAF.2D0B@harrier.bldrdoc.gov>
Organization: University of Kansas Academic Computing Services