Moved TagStack's code into Parser