|mathematical function parser/compiler email@example.com (Jens Dreger) (1998-05-04)|
|Re: mathematical function parser/compiler firstname.lastname@example.org (Robert Bernecky) (1998-05-07)|
|Re: mathematical function parser/compiler email@example.com (Joerg Schoen) (1998-05-07)|
|Re: mathematical function parser/compiler firstname.lastname@example.org (Ram Bhamidipaty) (1998-05-12)|
|From:||Jens Dreger <email@example.com>|
|Date:||4 May 1998 23:07:49 -0400|
|Organization:||Freie Universitaet Berlin|
I'm looking for a c/c++ function, that takes some string like
at runtime (!) and returns a function that evaluates this
expression when called within the program. This sounds like a
common problem, so I assume it has already been solved, but I
couldn't find anything like that.
Also, can you recommend any books that could help me here ?
Thanx a lot !
[That's close to the basic calculator example found in every introductory
compiler text, except that it needs to produce an intermediate form of
the function. If you want it to compile all the way to machine code at
runtime, that's not very commonly done, although not usually all that
hard to do. -John]
Return to the
Search the comp.compilers archives again.