Data source: http://rosettacode.org/wiki/Parsing/Shunting-yard_algorithm