Add close_stack; make closing braces terminators.

Also adds the consume: named argument to accept(), which determines
whether the token is actually consumed in the process of accepting it
or if it's a dry operation.