This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Java in General and the fly likes Evaluation of an expression Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Evaluation of an expression" Watch "Evaluation of an expression" New topic
Author

Evaluation of an expression

A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 979
Hi all,

I want a suggestion regarding this problem.

The user can enter an expression in the textbox..

At the server side I have to evaluate whether the expression entered by the

user is a valid expression....(infix/postfix/prefix)

Can u suggest me a solution for this..how should i go about this problem.

Thanks in advance.
ARKumar
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12792
    
    5
Seems to me that is essentially the problem solved by a compiler so you should look for tutorials on compiler writing. To give you a start, you will need some way to recognize/distinguish between operators and operands.
Bill
 
GeeCON Prague 2014
 
subject: Evaluation of an expression