Tells the lexer to skip input tokens until it sees a token with the given value.
T $type The token type to skip until.:
void
public function skipUntil($type) { while ($this->lookahead !== null && !$this->lookahead ->isA($type)) { $this->moveNext(); } }