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(CL OSE,N)),10 0);"
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 .
the formula is a string one of it like this "ROC := MULTIPLY(DIVIDE(SUB(CLOSE,
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 .
you have to write a parser. search the net ... there is enough parsing code available.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Lex/Yacc is a good solution.