http://www.perlmonks.org?node_id=423871


in reply to Re^2: Generic RPN Translator available?
in thread Generic RPN Translator available?

Update: Looks like I spoke too soon:
"sin(ab)"
yields
sin, a, b
instead of the correct
sin, ab
Hmmm ...

Actually, I was looking for exactly the solution browserUK provided. Outstanding job, browserUK! It even works for nested function calls like

"max(min(a,b-c), c, min(d-f,e) ) * atan( pi*4, -1 )"
which gets transformed to
a, b, c, -, min, c, d, f, -, e, min, max, pi, 4, *, -1, atan, *
Now, anyone up for a Parse::Descent grammar, just for kicks :) ?