Add helper functions to Parser class

fail is a quick way to generate "useful" error messages. expect can be
used to enforce simple Token chains like "public static void"