consume method
Implementation
void consume(int type) {
if (token?.type != type) {
fail(expected: Token.typeToString(type));
}
next();
}
void consume(int type) {
if (token?.type != type) {
fail(expected: Token.typeToString(type));
}
next();
}