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

Posted on 1999-06-25
Medium Priority
Last Modified: 2011-09-20
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);"
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 .
Question by:jancook

Expert Comment

ID: 1198438
you have to write a parser. search the net ... there is enough parsing code available.

Accepted Solution

cpopin earned 150 total points
ID: 1198439

Expert Comment

ID: 1198440
Lex/Yacc is a good solution.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question