Discussion Locked

Parsing mathematical expressions

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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:
http://nl.com.com/MiniFormHandler?brand=builder&subs_channel=bldr_front_door&list_id=e027&tag=fb

1 reply

by pv

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.

This discussion is closed to new replies.