seeking embeddable statement compiler code

"Bruce Varley" <bvarley@comswest.net.au>
25 Nov 2001 22:43:37 -0500

          From comp.compilers

Related articles
seeking embeddable statement compiler code bvarley@comswest.net.au (Bruce Varley) (2001-11-25)
Re: seeking embeddable statement compiler code rus@tamu.edu (Silvius Rus) (2001-11-26)
Re: seeking embeddable statement compiler code spinoza1111@yahoo.com (2001-11-29)
Re: seeking embeddable statement compiler code Sid-Ahmed-Ali.TOUATI@inria.fr (Sid Ahmed Ali TOUATI) (2001-11-29)
Re: seeking embeddable statement compiler code rus@tamu.edu (Silvius Rus) (2001-12-03)
Re: seeking embeddable statement compiler code spinoza1111@yahoo.com (2001-12-07)
| List of all articles for this month |
From: "Bruce Varley" <bvarley@comswest.net.au>
Newsgroups: comp.compilers
Date: 25 Nov 2001 22:43:37 -0500
Organization: Compilers Central
Keywords: question
Posted-Date: 25 Nov 2001 22:43:36 EST

I need some algo code, described below. It's not for homework, that
stopped 30 years ago, it's for a custom process engineering analysis
tool.


I'm seeking a function set - either C++ code or MSVC linkable object,
that will input a text string of a mathematical expression and either
output an efficient codified form (eg. Intel math copro machine code),
or allow a reasonably efficient direct interpretation from the text
itself, then separately perform the evaluation.


The expression needs to be able to contain 4 variable elements whose
values can be adjusted on consecutive calculations. Typically, it
would be something like:


a * ( b + cos(2.5 - c) * sqrt(d))


Typically, one function would read the input string and generate the
codified version. A second function would insert the values for the 4
variables then evaluate the expression.


Any direction much appreciated.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.