Function Parser.peekIs

final bool peekIs (
  ubyte t
) pure nothrow @nogc @safe const;

Returns

true if there is a next token and that token has the type t.