Web Development

General discussion


Parsing mathematical expressions

By MaryWeilage Editor ·
This week's Java newsletter explains how you can use JEP to parse mathematical expressions.

Do you already use JEP? If not, do you think you will after reading this tip? Share your thoughts on JEP.

If you aren't subscribed to the free Java newsletter, click the following link to automatically sign up:

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

Parsing not same as Evaluating

by pv In reply to Parsing mathematical expr ...

The definition of parsing :
[n] a computer program that divides code up into functional components; "compilers must parse source code in order to translate it into object code"

The example is an example of "expression evaluation", not parsing. Parsing the expression should return a list of components (variables, constants and operators) usually expressed in Polish Notation or Reverse Polish notation, not the value of the expression.

Related Discussions

Related Forums