in reply to shunting yard
http://en.literateprograms.org/Shunting_yard_algorithm_(Perl)
And, no -- I didn't write it :). Good luck!