DietInput.expect

Does a peek and advances a token and adds an error if it doesn't match.

struct DietInput
bool
expect
(
TokenType type
,
string match = null
,
string srcfile = __FILE__
,
size_t srcline = __LINE__
)

Meta