Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 1999-06-25
3
Medium Priority
?
170 Views
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);"
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 .
0
Comment
Question by:jancook
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Expert Comment

by:nil_dib
ID: 1198438
you have to write a parser. search the net ... there is enough parsing code available.
0
 
LVL 2

Accepted Solution

by:
cpopin earned 150 total points
ID: 1198439
0
 

Expert Comment

by:tomschoem
ID: 1198440
Lex/Yacc is a good solution.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

721 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