I'm looking for a module recommendation to parse an expression like:
(((A + B) x C) % D)where the operators are not necessarily mathematical, I can handle the operators. I need to work from the inner-most parenthesis towards the outer-most. Working from inner to outer is the crucial aspect.
I couldn't come up with an RE to handle the problem. Text-Balanced didn't quite fit the bill here. Is Parse::RecDescent the way to go? It seems like overkill, is it even applicable to this type of problem? What's recommended?
thanks!In reply to Parsing a Formula by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |