public function AbstractLexer::skipUntil in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/lexer/lib/Doctrine/Common/Lexer/AbstractLexer.php \Doctrine\Common\Lexer\AbstractLexer::skipUntil()
Tells the lexer to skip input tokens until it sees a token with the given value.
Parameters
string $type The token type to skip until.:
Return value
void
File
- vendor/
doctrine/ lexer/ lib/ Doctrine/ Common/ Lexer/ AbstractLexer.php, line 192
Class
- AbstractLexer
- Base class for writing simple lexers, i.e. for creating small DSLs.
Namespace
Doctrine\Common\LexerCode
public function skipUntil($type) {
while ($this->lookahead !== null && $this->lookahead['type'] !== $type) {
$this
->moveNext();
}
}