beamer: introduce bottomup and topdown parsing

    * beamer.tex: Here.