I want to program a package that calculates the resulting value of a certain input formula,
I created the parser due to the Shunting-Yard Algorithm (Dijikstra),
I want to create libraries of the functions that the user will be allowed to use (for ex: sin() and cos() functions)
then I was wondering what my next step should be; so I have some questions:
What is more simpler to use, the Shunting Yard Algorithm, or the Recursive-Descent algorithm for parsing the formulas?
will i reach the work of the interpreter in some stage of my work, and how?
Thanks...
Please note that i am programming it using Delphi
[1]- what does it mean to be "simple"?[2]- you need to elaborate. We don't have your notes from class!