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


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

Update: It took all of about 25 minutes to implement 4 levels of presedence:

** | */% | +- | ,func()

P:\test>423305 1+2*3 2, 3, *, 1, + ((2*3)+1) 1+2*3**4 3, 4, **, 2, *, 1, + (((3**4)*2)+1)

It's not complete, but I thought you were looking for a starting point--not finished code.

Have fun!


Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.