#String->Expression?
17-Jul-93 13:40:19
Sb: #131942-#String->Expression?
Fm: Bob Delaney 72255,1054
To: Simon DeDeo 72702,1024
Simon,
In the July, 1992 issue of MacTutor (now MacTech) magazine is an article by
Kevin Raner called "A Compiler for Math Equations". At run time this C program
allows the input of a mathematical function in string form. The function is
then compiled into machine code in the heap (while the program is running!).
The function can be used in the program like any other one. It runs at full
speed because it doesn't have to be interpreted each time. I am sure you can
adapt Kevin's Equation Compiler for your purposes.
Bob