At 11/12/08 10:08 PM, FiqStudios wrote:
I'm working on a calculator in flash (advanced) and I've already defined functions. Now all that's left for me to do is to get flash to execute functions typed by the user, for example, If input.text = "riemann_zeta(8.5)" how will I get flash to treat it as a function and execute it?
Unfortunately, I don't think this is going to be as easy as you might expect. What you need to do is write a compiler, sans the code generation portion. If you don't know them already, looking into finite state and push-down automata would be a good place to start, along with any other compiler theory resources you could find.