expect method
Implementation
void expect(String text, {bool consume = true}) {
if (this.fetch().text != text) {
throw ParseException(
'Expected \'$text\', got \'${this.fetch().text}\'', this.fetch());
}
if (consume) {
this.consume();
}
}