Parser.expect

Returns a token of the specified type if it was the next token, otherwise calls the error function and returns null. Advances the lexer by one token.

class Parser
protected
const(Token)*
expect

Meta