Generalizing the Shunting Yard Algorithm Part 1