exercise3a and first rewriting exercise3b. The shunting rule is used.
second rewriting exercise3b: The shunting rule is used.