Link to home
Start Free TrialLog in
Avatar of jancook
jancook

asked on

I will program a formula analyser program.who would help me?

I will program a formula analyser program
the formula is a string one of it like this "ROC := MULTIPLY(DIVIDE(SUB(CLOSE,REF(CLOSE,N)),REF(CLOSE,N)),100);"
MULTIPLY -- *
DIVIDE  -- /
SUB     __ -
REF     __this operator is define by user and (close ,N) is
its parameter

can any one give me some source code that it can analy those sort of fomula .
Avatar of nil_dib
nil_dib

you have to write a parser. search the net ... there is enough parsing code available.
ASKER CERTIFIED SOLUTION
Avatar of cpopin
cpopin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Lex/Yacc is a good solution.